Skip to content

Commit

Permalink
Merge pull request #5 from Avaiga/bot/docker-github-action-develop
Browse files Browse the repository at this point in the history
Update the Docker GitHub Actions workflow file for develop.
  • Loading branch information
florian-vuillemot authored Aug 22, 2024
2 parents ef4da3c + c4e218c commit ad0c311
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/docker-develop.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This file was automatically generated.
# Please, do not edit it manually.

name: Build Docker Image

on:
release:
types:
- prereleased

permissions:
id-token: write
contents: read

jobs:
build:
environment: develop
runs-on: stockvisualization

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 }}/stock-visualization:develop .
docker push ${{ vars.DOCKER_REGISTRY }}/stock-visualization:develop

0 comments on commit ad0c311

Please sign in to comment.