Skip to content

Commit 90a7389

Browse files
authored
DEVOPS-1626 - Fix bad workflow options (#1229)
1 parent cf26b1c commit 90a7389

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

.github/workflows/release-container.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
release:
77
types: [published]
88

9+
env:
10+
CONTAINER_IMAGE: "ghcr.io/${{ github.repository }}"
11+
912
jobs:
1013
context:
1114
runs-on: ubuntu-latest
@@ -15,6 +18,10 @@ jobs:
1518
packages: write
1619

1720
steps:
21+
- name: downcase CONTAINER_IMAGE
22+
run: |
23+
echo "CONTAINER_IMAGE=${CONTAINER_IMAGE,,}" >> ${GITHUB_ENV}
24+
1825
- name: Set up Docker Buildx
1926
uses: docker/setup-buildx-action@v2
2027

@@ -31,14 +38,10 @@ jobs:
3138
github-token: ${{ secrets.GITHUB_TOKEN }}
3239
push: true
3340

34-
registry: ghcr.io
35-
organization: "${{ github.event.repository.owner.login }}"
36-
repository: "${{ github.event.repository.name }}"
37-
3841
platforms: |
3942
linux/amd64
4043
linux/arm64
4144
4245
tags: |
43-
latest
44-
${{ github.event.release.tag_name }}
46+
${{ env.CONTAINER_IMAGE }}:latest
47+
${{ env.CONTAINER_IMAGE }}:${{ github.event.release.tag_name }}

.github/workflows/testing-container.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches:
88
- 'develop'
99

10+
env:
11+
CONTAINER_IMAGE: "ghcr.io/${{ github.repository }}"
12+
1013
jobs:
1114
context:
1215
runs-on: ubuntu-latest
@@ -16,6 +19,10 @@ jobs:
1619
packages: write
1720

1821
steps:
22+
- name: downcase CONTAINER_IMAGE
23+
run: |
24+
echo "CONTAINER_IMAGE=${CONTAINER_IMAGE,,}" >> ${GITHUB_ENV}
25+
1926
- name: Set up Docker Buildx
2027
uses: docker/setup-buildx-action@v2
2128

@@ -32,14 +39,10 @@ jobs:
3239
github-token: ${{ secrets.GITHUB_TOKEN }}
3340
push: true
3441

35-
registry: ghcr.io
36-
organization: "${{ github.event.repository.owner.login }}"
37-
repository: "${{ github.event.repository.name }}"
38-
3942
platforms: |
4043
linux/amd64
4144
linux/arm64
4245
4346
tags: |
44-
develop
45-
${{ github.sha }}
47+
${{ env.CONTAINER_IMAGE }}:develop
48+
${{ env.CONTAINER_IMAGE }}:${{ github.sha }}

0 commit comments

Comments
 (0)