diff --git a/.github/workflows/docker-dev.yml b/.github/workflows/docker-dev.yml index 9ea4b6bf2..1f9495a30 100644 --- a/.github/workflows/docker-dev.yml +++ b/.github/workflows/docker-dev.yml @@ -98,7 +98,7 @@ jobs: with: context: . platforms: ${{ matrix.platform }} - outputs: type=image,name=mauriceboe/TREK,push-by-digest=true,name-canonical=true,push=true + outputs: type=image,name=mauriceboe/trek,push-by-digest=true,name-canonical=true,push=true no-cache: true build-args: | APP_VERSION=${{ needs.version-bump.outputs.version }} @@ -145,16 +145,16 @@ jobs: working-directory: /tmp/digests run: | VERSION="${{ needs.version-bump.outputs.version }}" - mapfile -t digests < <(printf 'mauriceboe/TREK@sha256:%s\n' *) + mapfile -t digests < <(printf 'mauriceboe/trek@sha256:%s\n' *) MAJOR_TAG="$(echo "$VERSION" | cut -d. -f1)-pre" docker buildx imagetools create \ - -t "mauriceboe/TREK:latest-pre" \ - -t "mauriceboe/TREK:$MAJOR_TAG" \ - -t "mauriceboe/TREK:$VERSION" \ + -t "mauriceboe/trek:latest-pre" \ + -t "mauriceboe/trek:$MAJOR_TAG" \ + -t "mauriceboe/trek:$VERSION" \ "${digests[@]}" - name: Inspect manifest - run: docker buildx imagetools inspect mauriceboe/TREK:latest-pre + run: docker buildx imagetools inspect mauriceboe/trek:latest-pre - name: Push git tag run: | diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 5f9837396..42188b90e 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -102,9 +102,10 @@ jobs: git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git add package.json package-lock.json server/package.json client/package.json shared/package.json charts/trek/Chart.yaml - git commit -m "chore: bump version to $NEW_VERSION [skip ci]" - git tag "v$NEW_VERSION" - git push origin main --follow-tags + git diff --cached --quiet || git commit -m "chore: bump version to $NEW_VERSION [skip ci]" + git tag -f "v$NEW_VERSION" + git push origin main + git push -f origin "v$NEW_VERSION" build: runs-on: ${{ matrix.runner }} @@ -138,7 +139,7 @@ jobs: with: context: . platforms: ${{ matrix.platform }} - outputs: type=image,name=mauriceboe/TREK,push-by-digest=true,name-canonical=true,push=true + outputs: type=image,name=mauriceboe/trek,push-by-digest=true,name-canonical=true,push=true no-cache: true build-args: | APP_VERSION=${{ needs.version-bump.outputs.version }} @@ -183,16 +184,16 @@ jobs: working-directory: /tmp/digests run: | VERSION="${{ needs.version-bump.outputs.version }}" - mapfile -t digests < <(printf 'mauriceboe/TREK@sha256:%s\n' *) + mapfile -t digests < <(printf 'mauriceboe/trek@sha256:%s\n' *) MAJOR_TAG="$(echo "$VERSION" | cut -d. -f1)" docker buildx imagetools create \ - -t "mauriceboe/TREK:latest" \ - -t "mauriceboe/TREK:$MAJOR_TAG" \ - -t "mauriceboe/TREK:$VERSION" \ + -t "mauriceboe/trek:latest" \ + -t "mauriceboe/trek:$MAJOR_TAG" \ + -t "mauriceboe/trek:$VERSION" \ "${digests[@]}" - name: Inspect manifest - run: docker buildx imagetools inspect mauriceboe/TREK:latest + run: docker buildx imagetools inspect mauriceboe/trek:latest release-helm: runs-on: ubuntu-latest