-
Notifications
You must be signed in to change notification settings - Fork 224
53 lines (49 loc) · 1.54 KB
/
ch12.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Ch12 Image Builds
on:
push:
paths:
- ".github/workflows/ch12.yaml"
- "ch12/docker-images/**"
schedule:
- cron: "0 12 * * 0"
jobs:
build-amd64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: azure/docker-login@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: ch12
working-directory: ./ch12/docker-images
run: |
docker-compose -f docker-compose.yml -f amd64.yml build --pull
docker-compose -f docker-compose.yml -f amd64.yml push
build-arm64:
runs-on: [self-hosted, Linux, ARM64, docker]
steps:
- uses: actions/checkout@master
- uses: azure/docker-login@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: ch12
working-directory: ./ch12/docker-images
run: |
docker compose -f docker-compose.yml -f arm64.yml build --pull
docker compose -f docker-compose.yml -f arm64.yml push
push-manifests:
runs-on: ubuntu-latest
needs: ['build-amd64', 'build-arm64']
steps:
- uses: actions/checkout@master
- uses: azure/docker-login@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: ch12
working-directory: ./ch12/docker-images
run: |
./push-manifests.ps1
shell: pwsh