Skip to content

Commit

Permalink
ci: fix bad repo name when publishing container
Browse files Browse the repository at this point in the history
  • Loading branch information
PgBiel committed Jun 12, 2024
1 parent 6692bd6 commit be55d69
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release-containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,19 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

# This is needed because the repo is under the "Glistix" - not "glistix" - org,
# and lowercase repo names are required for the registry.
# See https://github.com/orgs/community/discussions/25768
- name: Convert repository name to lowercase
env:
ORIGINAL_GH_REPO: ${{ github.repository }}
run: |
echo "GH_REPO=${ORIGINAL_GH_REPO,,}" >>${GITHUB_ENV}
- name: Build version and tags
id: versions
env:
GH_REF: ${{ github.ref }}
GH_REPO: ${{ github.repository }}
run: |
# Strip git ref prefix from version
V_VERSION=$(echo "$GH_REF" | sed -e 's|.*/\(.*\)|\1|')
Expand All @@ -67,8 +75,6 @@ jobs:
echo "container_tag=$TAG" >> $GITHUB_OUTPUT
- name: Download Glistix archives from GitHub release
env:
GH_REPO: ${{ github.repository }}
run: |
VERSION=${{ steps.versions.outputs.v_version }}
Expand Down

0 comments on commit be55d69

Please sign in to comment.