-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (42 loc) · 1.2 KB
/
build-docker.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
37
38
39
40
41
42
43
44
45
name: docker
on:
push:
env:
IMAGE_FQDN: ghcr.io/kontextwork/zimbra-builder
# actually that's the distro to build ON and FOR
TARGET_DISTO: ubuntu:20.04
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout us
uses: actions/checkout@v4
with:
path: builder
- name: Checkout zimbra-build-scripts
uses: actions/checkout@v4
with:
repository: ianw1974/zimbra-build-scripts
ref: main
path: zimbra-build-scripts
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}
- name: Build builder
uses: docker/build-push-action@v3
with:
context: zimbra-build-scripts
platforms: linux/amd64
push: true
build-args: |
# actually that's the distro to build ON and FOR
RELEASE=${{ env.TARGET_DISTRO }}
tags: |
${{ env.IMAGE_FQDN }}:latest