-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from voxpupuli/update_build
update build (copy of puppetdb changes)
- Loading branch information
Showing
4 changed files
with
113 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
|
||
on: | ||
pull_request: {} | ||
push: | ||
branches: | ||
- main | ||
|
||
name: CI | ||
|
||
jobs: | ||
build_docker_image: | ||
name: 'Built test Docker image' | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: 'puppetserver' | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build Docker image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: puppetserver | ||
tags: 'ci/puppetserver:${{ github.sha }}' | ||
push: false | ||
|
||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/trivy-action@master | ||
with: | ||
image-ref: 'ci/puppetserver:${{ github.sha }}' | ||
format: 'sarif' | ||
output: 'trivy-results.sarif' | ||
|
||
- name: Upload Trivy scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: 'trivy-results.sarif' | ||
|
||
tests: | ||
needs: | ||
- build_docker_image | ||
runs-on: ubuntu-latest | ||
name: Test suite | ||
steps: | ||
- run: echo Test suite completed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.