diff --git a/.github/workflows/release-snapshot.yml b/.github/workflows/release-snapshot.yml index 917ead3e..3b6fab15 100644 --- a/.github/workflows/release-snapshot.yml +++ b/.github/workflows/release-snapshot.yml @@ -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 @@ -63,16 +63,16 @@ 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 }} @@ -80,7 +80,7 @@ jobs: # TODO: support ARM64 - name: Build x86_64 image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: . file: ./Dockerfile diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 57bd4045..64666a51 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,16 +62,16 @@ 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 }} @@ -79,7 +79,7 @@ jobs: # TODO: support ARM64 - name: Build x86_64 image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: . file: ./Dockerfile @@ -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