Merge branch 'mbelt3/stage' of github.com:p2p-org/polkadot-profit-tra… #447
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: ['mbelt3/stage'] | |
jobs: | |
docker: | |
name: Build & update docker image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Login to GCR | |
uses: docker/login-action@v2 | |
with: | |
registry: https://europe-docker.pkg.dev | |
username: _json_key | |
password: ${{ secrets.GCR_JSON_KEY }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
with: | |
push: true | |
context: ./main | |
tags: europe-docker.pkg.dev/substrate-infra/images/mbelt3_preloader:${{ github.sha }} | |
- name: Update Image Version | |
id: imgupd | |
uses: mikefarah/yq@master | |
with: | |
cmd: | | |
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/values.yaml | |
- name: Commit image changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Apply image tag change |