-
-
Notifications
You must be signed in to change notification settings - Fork 16
42 lines (39 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
name: Build and publish a 🛢️ container
on:
push:
paths-ignore:
- '.github/**'
branches:
- 'main'
tags:
- '*'
workflow_dispatch:
jobs:
build-and-push-container:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Build Puppetserver 7 container
uses: voxpupuli/gha-build-and-publish-a-container@v2
with:
registry_password: ${{ secrets.GITHUB_TOKEN }}
build_args: |
PUPPET_RELEASE=7
PUPPET_VERSION=${{ github.ref_name }}
build_arch: linux/amd64 #,linux/arm64
build_context: puppetserver
buildfile: puppetserver/Dockerfile
if: ${{ startsWith(github.ref_name, '7') }}
- name: Build Puppetserver 8 container
uses: voxpupuli/gha-build-and-publish-a-container@v2
with:
registry_password: ${{ secrets.GITHUB_TOKEN }}
build_args: |
PUPPET_RELEASE=8
PUPPET_VERSION=${{ github.ref_name }}
build_arch: linux/amd64 #,linux/arm64
build_context: puppetserver
buildfile: puppetserver/Dockerfile
if: ${{ startsWith(github.ref_name, '8') }}