-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (30 loc) · 936 Bytes
/
main.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
name: Build all images
on:
push:
branches: [ master ]
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Purge containers
run: 'docker kill $(docker ps -q) || exit 0'
- name: Enable docker multiarch
uses: docker/setup-qemu-action@v3
- name: "Run linux/setup-docker-images"
run: "./linux/setup-docker-images"
- name: Log in to the Container registry
if: ${{ github.event.pull_request.merged || github.actor == 'CamJN' }}
uses: docker/login-action@v3
id: login
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push to github container registry
if: ${{ success() && steps.login.conclusion != 'skipped' }}
run: "./linux/publish-docker-images"