Skip to content

Commit e9689fa

Browse files
committed
feat: lowercase Docker image name in build and release workflows
1 parent 31bc7cb commit e9689fa

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,17 @@ jobs:
5050
username: ${{ github.actor }}
5151
password: ${{ secrets.GITHUB_TOKEN }}
5252

53+
- name: Lowercase image name
54+
id: image
55+
run: echo "name=$(echo ${{ env.IMAGE_NAME }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
56+
5357
- name: Build and push Docker image
5458
uses: docker/build-push-action@v6
5559
with:
5660
context: .
5761
file: galvanize-instancer/Dockerfile
5862
push: true
59-
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.version }}-B${{ github.run_number }}
63+
tags: ${{ env.REGISTRY }}/${{ steps.image.outputs.name }}:${{ steps.version.outputs.version }}-B${{ github.run_number }}
6064
labels: |
6165
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
6266
org.opencontainers.image.version=${{ steps.version.outputs.version }}-B${{ github.run_number }}

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,15 @@ jobs:
4343
username: ${{ github.actor }}
4444
password: ${{ secrets.GITHUB_TOKEN }}
4545

46+
- name: Lowercase image name
47+
id: image
48+
run: echo "name=$(echo ${{ env.IMAGE_NAME }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
49+
4650
- name: Extract metadata
4751
id: meta
4852
uses: docker/metadata-action@v5
4953
with:
50-
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
54+
images: ${{ env.REGISTRY }}/${{ steps.image.outputs.name }}
5155
tags: |
5256
type=semver,pattern={{version}}
5357
type=semver,pattern={{major}}.{{minor}}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
## vX.X.X (YYYY-MM-DD)
4+
- fix action capital letter in repo name
45

56
## v0.2.1 (2026-02-10)
67
- fix go.mod go version

0 commit comments

Comments
 (0)