Skip to content

Commit

Permalink
chore(deps): upgrade workflow deps
Browse files Browse the repository at this point in the history
  • Loading branch information
auguwu committed May 8, 2022
1 parent 205980c commit 6843b0f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
run: ./gradlew compileKotlin --no-daemon

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Cache Docker layers
uses: actions/cache@v3
Expand All @@ -63,24 +63,24 @@ jobs:
${{ runner.os }}-buildx-cache-
- name: Setup QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2

- name: Login into Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: auguwu
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login into GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GITHUB_TOKEN }}

# TODO: support ARM64
- name: Build x86_64 image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,24 +62,24 @@ jobs:
${{ runner.os }}-buildx-cache-
- name: Setup QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2

- name: Login into Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: auguwu
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login into GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GITHUB_TOKEN }}

# TODO: support ARM64
- name: Build x86_64 image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
Expand Down Expand Up @@ -114,8 +114,12 @@ jobs:
run: |
kubectl set image deployment/hazel hazel=auguwu/hazel:${{ steps.tag.outputs.tag }}
kubectl set image deployment/maven hazel=auguwu/hazel:${{ steps.tag.outputs.tag }}
kubectl set image deployment/maven --namespace noelware hazel=auguwu/hazel:${{ steps.tag.outputs.tag }}
kubectl set image statefulset/cdn --namespace noelware auguwu/hazel:${{ steps.tag.outputs.tag }}
- name: Deploy to the bot
- name: Deploy to Kubernetes!
run: |
kubectl rollout status deployment/hazel
kubectl rollout status deployment/maven
kubectl rollout status --namespace noelware deployment/maven
kubectl rollout status --namespace noelware statefulset/cdn

0 comments on commit 6843b0f

Please sign in to comment.