Skip to content

.github/workflows/ci.yaml: Login to the docker registry and push the … #4

.github/workflows/ci.yaml: Login to the docker registry and push the …

.github/workflows/ci.yaml: Login to the docker registry and push the … #4

Workflow file for this run

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