Add validation notification settings before copyParameter #11
This file contains hidden or 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: Build and Push admin docker image | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - "admin/**" | |
| - ".github/workflows/admin-*.yml" | |
| jobs: | |
| build-and-push-admin: | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: admin-${{ github.ref }} | |
| cancel-in-progress: true | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set short git commit SHA | |
| id: vars | |
| run: | | |
| calculatedSha=$(git rev-parse --short ${{ github.sha }}) | |
| echo "COMMIT_SHORT_SHA=$calculatedSha" >> $GITHUB_ENV | |
| echo "REPO=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV | |
| - name: Build Docker image | |
| run: | | |
| cd admin && docker build -t ghcr.io/$REPO-admin:$COMMIT_SHORT_SHA . | |
| - name: Log in to GitHub Container Registry | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.TOKEN }} | |
| - name: Push Docker image | |
| run: | | |
| docker push ghcr.io/$REPO-admin:$COMMIT_SHORT_SHA |