Skip to content

Commit

Permalink
Update workflow to use composite workflow for building images
Browse files Browse the repository at this point in the history
  • Loading branch information
rnijveld committed May 29, 2024
1 parent 20e9ee2 commit 0847430
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@ jobs:
- nginx_version: stable
nginx_package_src: "https://nginx.org/packages/debian/"
latest: false
uses: "tweedegolf/actions-helpers/.github/workflows/container-image.yml@main"
with:
push: ${{ github.ref == 'refs/heads/main' }}
platforms: "linux/amd64,linux/arm64"
build-args: |
NGINX_PACKAGE_SRC=${{matrix.nginx_package_src}}
tags: |
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

- name: Build container image
uses: tweedegolf/build-container-image@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
push: ${{ github.ref == 'refs/heads/main' }}
platforms: "linux/amd64,linux/arm64"
build-args: |
NGINX_PACKAGE_SRC=${{matrix.nginx_package_src}}
tags: |
ghcr.io/tweedegolf/nginx:${{matrix.nginx_version}}
${{ matrix.latest && 'ghcr.io/tweedegolf/nginx:latest' || '' }}

0 comments on commit 0847430

Please sign in to comment.