-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 946 Bytes
/
docker.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
# Test to see if the Docker build process works
# Creates a GitHub release
on:
push:
branches-ignore:
- main
tags-ignore: # Ensure that we're not running this on our release tags - This will be an actual build.
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: Docker
jobs:
build_docker:
name: Test Build
runs-on: ubuntu-latest
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host
- name: Build and push to local test registry
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64,darwin/arm64
push: true
tags: localhost:5000/${{github.repository}}:${{github.sha}}