Skip to content

Commit 376173a

Browse files
authored
Merge pull request #306 from orionrobots/workflow-improvements
Improve workflow security
2 parents 929376f + fa0e2cf commit 376173a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/on_call_build_site.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ jobs:
3030
password: ${{ github.token }}
3131

3232
- name: Build base image
33+
env:
34+
push_tag: ${{inputs.push_tag || 'temp' }}
3335
run: |
34-
docker build --target base -t ghcr.io/orionrobots/orionrobots-site.base:${{ inputs.push_tag || 'temp' }} .
36+
docker build --target base -t "ghcr.io/orionrobots/orionrobots-site.base:${push_tag}" .
3537
3638
- name: Build the site with docker compose
3739
run: |
@@ -57,5 +59,7 @@ jobs:
5759

5860
- name: Push base image
5961
if: inputs.push_tag
62+
env:
63+
push_tag: ${{inputs.push_tag }}
6064
run: |
61-
docker push ghcr.io/orionrobots/orionrobots-site.base:${{ inputs.push_tag }}
65+
docker push "ghcr.io/orionrobots/orionrobots-site.base:${push_tag}"

0 commit comments

Comments
 (0)