diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 382176e..e809617 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -55,30 +55,3 @@ jobs: ${{ env.IMAGE }}:main cache-from: type=registry,ref=${{ env.IMAGE }}:main cache-to: type=inline - - deploy: - needs: build-and-push - runs-on: ubuntu-latest - permissions: - contents: write - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Update image in deployment manifest - run: | - NEW_IMAGE="${{ env.IMAGE }}:${{ needs.build-and-push.outputs.image_tag }}" - sed -i "s|image: git.mcintire.me/graham/aprs.me:.*|image: ${NEW_IMAGE}|g" k8s/deployment.yaml - - - name: Commit and push updated manifest - run: | - NEW_IMAGE="${{ env.IMAGE }}:${{ needs.build-and-push.outputs.image_tag }}" - git config user.name "github-actions" - git config user.email "github-actions@github.com" - git add k8s/deployment.yaml - git diff --cached --quiet && echo "No changes to commit" && exit 0 - git commit -m "chore: update aprs.me image to ${NEW_IMAGE} [skip ci]" - git push