drop manifest-bump deploy job; argocd-image-updater handles it now
This commit is contained in:
parent
48f7f48abb
commit
24d353cec4
1 changed files with 0 additions and 27 deletions
27
.github/workflows/deploy.yml
vendored
27
.github/workflows/deploy.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue