Skip to content

Commit

Permalink
publish image with tag :refresh-routes
Browse files Browse the repository at this point in the history
  • Loading branch information
tgeens committed Sep 6, 2023
1 parent fa35a6d commit ac17581
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Publish docker image
if: ${{ github.ref == 'refs/heads/main' || startswith(github.ref, 'refs/tags/') }}
run: ./gradlew bootBuildImage --publishImage
# if: ${{ github.ref == 'refs/heads/main' || startswith(github.ref, 'refs/tags/') }}
run: ./gradlew bootBuildImage --publishImage --imageName ghcr.io/xenit-eu/contentgrid-gateway:refresh-routes
env:
ORG_GRADLE_PROJECT_DOCKER_PUBLISH_REGISTRY_URL: ghcr.io
ORG_GRADLE_PROJECT_DOCKER_PUBLISH_REGISTRY_USERNAME: ${{ github.actor }}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ test {
bootBuildImage {
def dockerImageRepo = "ghcr.io/xenit-eu/contentgrid-gateway"
imageName = "${dockerImageRepo}:${project.version}"
tags = "${project.version}".endsWith('SNAPSHOT') ? [ "${dockerImageRepo}:SNAPSHOT" ] : null
// tags = "${project.version}".endsWith('SNAPSHOT') ? [ "${dockerImageRepo}:SNAPSHOT" ] : null

docker {
publishRegistry {
Expand Down

0 comments on commit ac17581

Please sign in to comment.