Skip to content

Commit 0cc3982

Browse files
committed
Container image is tagged with 'main' on the main branch
1 parent 22fff4e commit 0cc3982

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/container.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Commercial also use this container image for their E2E tests
2+
# Commercial rely on a container image built from the main branch with the tag 'main'
13
on:
24
workflow_call:
35
outputs:
@@ -19,9 +21,6 @@ jobs:
1921
- name: Checkout repository
2022
uses: actions/checkout@v5
2123

22-
- name: Inject slug/short variables
23-
uses: rlespinasse/[email protected]
24-
2524
- name: Set up Node environment
2625
uses: ./.github/actions/setup-node-env
2726

@@ -39,7 +38,8 @@ jobs:
3938
uses: redhat-actions/[email protected]
4039
with:
4140
image: dotcom-rendering
42-
tags: ${{ github.sha }} ${{ env.GITHUB_REF_SLUG }}
41+
# Commercial rely on a container image built from the main branch with the tag 'main'
42+
tags: ${{ github.sha }} ${{ github.ref == 'refs/heads/main' && 'main' || '' }}
4343
context: ./
4444
containerfiles: ./dotcom-rendering/Containerfile
4545

0 commit comments

Comments
 (0)