Skip to content

Commit

Permalink
Improved docker tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasleplus committed Mar 13, 2024
1 parent 32c8bc2 commit be2fd6e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Pull the latest ${{ matrix.platform }} image
run: docker pull --platform ${{ matrix.platform }} leplusorg/pgp-verify-jar
run: docker pull --platform ${{ matrix.platform }} ${{ github.repository_owner }}/pgp-verify-jar
17 changes: 15 additions & 2 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,27 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/metadata-action@v5
id: meta
with:
images: ${{ github.repository_owner }}/yaml
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- uses: docker/build-push-action@v5
with:
context: pgp-verify-jar
platforms: linux/amd64,linux/arm64
pull: true
push: true
push: ${{ github.event_name != 'pull_request' }}
sbom: true
tags: leplusorg/pgp-verify-jar:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Test the Docker image
working-directory: pgp-verify-jar
run: docker compose -f docker-compose.test.yml run sut

0 comments on commit be2fd6e

Please sign in to comment.