From af7f73585d83456fc9a31f89fed316872bded08e Mon Sep 17 00:00:00 2001 From: "infrastructure-management[bot]" <169941871+infrastructure-management[bot]@users.noreply.github.com> Date: Sat, 24 Aug 2024 14:47:11 +0000 Subject: [PATCH] Update the Docker GitHub Actions workflow file. --- .github/workflows/docker-develop.yaml | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/docker-develop.yaml diff --git a/.github/workflows/docker-develop.yaml b/.github/workflows/docker-develop.yaml new file mode 100644 index 0000000..d0b342a --- /dev/null +++ b/.github/workflows/docker-develop.yaml @@ -0,0 +1,37 @@ +# This file was automatically generated. +# Please, do not edit it manually. + +name: Build Docker Image develop + +on: + release: + types: + - prereleased + +permissions: + id-token: write + contents: read + +jobs: + build: + environment: develop + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: 'Az CLI login' + uses: azure/login@v1 + with: + client-id: ${{ secrets.AZURE_CLIENT_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + + - name: 'Login to ACR' + run: | + az acr login --name ${{ vars.DOCKER_REGISTRY }} + + - name: 'Build & push image' + run: | + docker build -t ${{ vars.DOCKER_REGISTRY }}/industry-agglom:develop . + docker push ${{ vars.DOCKER_REGISTRY }}/industry-agglom:develop