.github/workflows/ci.yaml: Login to the docker registry and push the … #4
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: fsmgmt CI setup, builds and uploads the image to ACR | |
| on: [push] | |
| jobs: | |
| Build-upload-fsmgmt-to-ACR: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Build image | |
| run: | | |
| docker buildx build -t ${{ SECRETS.ACRURL }}/fsmgmt . | |
| - name: Login to the registry and push | |
| run: | | |
| echo ${{ SECRETS.ACRPASSWORD }} | docker login ${{ SECRETS.ACRURL }} --username ${{ SECRETS.ACRUSERNAME }} --password-stdin | |
| docker push ${{ SECRETS.ACRURL }}/fsmgmt |