14
14
env :
15
15
REGISTRY : ghcr.io
16
16
# github.repository as <account>/<repo>
17
- IMAGE_BASE : ${{ github.repository }}
17
+ IMAGE_BASE : ' perfsonar/testpoint '
18
18
BUILD_DIR : .
19
19
20
20
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
58
58
type=ref,event=pr
59
59
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
60
60
61
+ - name : Extract Systemd Docker metadata
62
+ id : metasysd
63
+ uses : docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
64
+ with :
65
+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_BASE }}
66
+ tags : |
67
+ type=schedule,suffix=-systemd
68
+ type=ref,event=branch,suffix=-systemd
69
+ type=ref,event=tag,suffix=-systemd
70
+ type=ref,event=pr,suffix=-systemd
71
+ type=raw,value=systemd,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
72
+
61
73
# Build and push Docker image with Buildx (don't push on PR)
62
74
# https://github.com/docker/build-push-action
63
75
- name : Build and push Docker images
69
81
push : ${{ github.event_name != 'pull_request' }}
70
82
tags : ${{ steps.meta.outputs.tags }}
71
83
labels : ${{ steps.meta.outputs.labels }}
72
- platforms : linux/amd64,linux/arm/v7
84
+ platforms : linux/amd64
85
+
86
+ - name : Build and push Systemd Docker images
87
+ id : build-and-push-systemd
88
+ uses : docker/build-push-action@v6
89
+ with :
90
+ context : ${{ env.BUILD_DIR }}
91
+ file : ${{ env.BUILD_DIR }}/systemd/Dockerfile
92
+ push : ${{ github.event_name != 'pull_request' }}
93
+ tags : ${{ steps.metasysd.outputs.tags }}
94
+ labels : ${{ steps.metasysd.outputs.labels }}
95
+ platforms : linux/amd64
0 commit comments