Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update and fix GitHub Actions release workflow #18

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 8 additions & 16 deletions .github/workflows/build_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,18 @@ jobs:
contents: read
packages: write
steps:
- name: Build Puppetserver 7 container
- name: Set variables
run: |
TAG=${{ github.ref_name }}
echo "PUPPET_RELEASE=${TAG:0:1}" >> $GITHUB_ENV
echo "PUPPETSERVER_VERSION=${TAG}" >> $GITHUB_ENV
- name: Build Puppetserver ${{ env.PUPPETSERVER_VERSION }} 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 }}
PUPPET_RELEASE=${{ env.PUPPET_RELEASE }}
PUPPETSERVER_VERSION=${{ env.PUPPETSERVER_VERSION }}
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') }}