Skip to content

Commit

Permalink
Merge pull request #78 from RIPE-NCC/image-versioning
Browse files Browse the repository at this point in the history
Push `latest` and version tags from release builds only
  • Loading branch information
bjpbakker authored Jan 27, 2023
2 parents ec28ad0 + 74c6673 commit c84c209
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
needs: sbt-build
with:
jar-artifact: ${{ needs.sbt-build.outputs.jar-artifact }}
tag: latest
tags: ripencc/rpki-publication-server:unstable
push: ${{ github.ref == 'refs/heads/main' }}
secrets:
docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ on:
type: boolean
required: true
default: false
tag:
description: "Image tag"
tags:
description: "Image tags (comma separated) to build and push"
type: string
required: true
secrets:
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
context: ./
file: ./Dockerfile
push: ${{ inputs.push }}
tags: ripencc/rpki-publication-server:${{ inputs.tag }}
tags: ${{ inputs.tags }}
labels: "org.label-schema.vcs-ref=${{ github.sha }}"
build-args: |
PUBLICATION_SERVER_JAR=./rpki-publication-server.jar
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
with:
jar-artifact: ${{ needs.sbt-build.outputs.jar-artifact }}
push: true
tag: ${{ github.event.release.tag_name }}
tags: ripencc/rpki-publication-server:${{ github.event.release.tag_name }}, ripencc/rpki-publication-server:latest
secrets:
docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }}
docker_hub_access_token: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

0 comments on commit c84c209

Please sign in to comment.