Skip to content

Commit

Permalink
update ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
mc256 committed Nov 26, 2023
1 parent 17737c6 commit ffd0bd9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/debian-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
echo "minor="`git describe --tags --match "v*" | cut -d '-' -f 1 | sed -e "s/^v//" | cut -d '.' -f 2` >> $GITHUB_OUTPUT
echo "patch="`git describe --tags --match "v*" | cut -d '-' -f 1 | sed -e "s/^v//" | cut -d '.' -f 3` >> $GITHUB_OUTPUT
- name: Build deb package
# This needs container image from reg.yuri.moe. It is a small image that you can upload your deb package to. and save in a patial directory.
# Please make sure that the registry is available
# status is available at: http://status-production.mc256.workers.dev
env:
APT_UPLOAD_AUTH: ${{ secrets.APT_UPLOAD_AUTH }}
run: |
Expand All @@ -45,7 +48,7 @@ jobs:
curl -fsSL https://get.docker.com -o /tmp/get-docker.sh
sh /tmp/get-docker.sh
docker run --privileged --rm tonistiigi/binfmt --install all
docker run -d --hostname helper --expose 8080 --name helper -v "$(pwd)"/sandbox:/app/upload:rw harbor.yuri.moe/public/helper:latest
docker run -d --hostname helper --expose 8080 --name helper -v "$(pwd)"/sandbox:/app/upload:rw reg.yuri.moe/public/helper:latest
export UPLOAD_URL=http://`docker inspect helper | grep "IPAddress" | grep -o -E '[0-9.]+' | head -n 1`:8080/
make docker-buildx-multi-arch
- name: Release
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
logout: true
- name: Build and push
uses: docker/build-push-action@v3
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
logout: true
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,17 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version-file: './go.mod'
- name: Login to GitHub Container Registry
go-version-file: './go.mod'
- name: Login to Goharbor Container Registry
# This is needed for one of the test cases to check whether Starlight can integrate with Goharbor
# Please make sure that the registry is available
# status is available at: http://status-production.mc256.workers.dev
uses: docker/login-action@v2
with:
registry: harbor.yuri.moe
username: starlight
password: ${{ secrets.REGISTRY_PASSWORD }}
registry: ${{ secrets.GOHARBOR_REGISTRY }}
username: ${{ secrets.GOHARBOR_USERNAME }}
password: ${{ secrets.GOHARBOR_PASSWORD }}
logout: true
- name: Install Buildessentials
run: |
sudo apt update -y
Expand Down

0 comments on commit ffd0bd9

Please sign in to comment.