forked from conan-io/conan-docker-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 950 Bytes
/
docker-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Build and Push Docker Image
on:
push:
branches:
- '*'
jobs:
build-and-push:
runs-on: ubuntu-latest
defaults:
run:
working-directory: modern
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Login to Azure Container Registry
uses: azure/docker-login@v1
with:
login-server: ${{ ACR_LOGIN_SERVER }}
username: ${{ ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build base Docker image
run: |
docker-compose build base
- name: Push base Docker image
run: |
docker-compose push base
- name: Build GCC12 Docker image
run: |
docker-compose build gcc12
- name: Push GCC12 Docker image
run: |
docker-compose push gcc12
- name: Logout from Azure Container Registry
run: docker logout $ACR_LOGIN_SERVER