Skip to content

Commit

Permalink
GHA test image: Add labels and tags
Browse files Browse the repository at this point in the history
  • Loading branch information
quartje committed Dec 7, 2023
1 parent bc16b78 commit b9114aa
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/build-push-test-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
- name: Build the app
uses: openconext/build-and-publish-test-container/php72-node14@main
with:
dir_to_include: 'tests/'
use_yarn: false

- name: Set up QEMU
Expand All @@ -33,6 +32,20 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set docker labels and tags
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/openconext/stepup-middleware/stepup-middleware
flavor: |
latest=false
suffix=-test
tags: |
type=ref,event=tag
type=semver,pattern={{version}}
type=sha
type=raw,suffix=,value=test
- name: Build and push the TEST image
uses: docker/build-push-action@v4
Expand All @@ -41,5 +54,5 @@ jobs:
file: docker/Dockerfile.test
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/openconext/stepup-middleware/stepup-middleware:test
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit b9114aa

Please sign in to comment.