ci(fix): replace more invalid ref chars (#4687)

https://github.com/firezone/firezone/actions/runs/8741173474/job/23986580117

---------

Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
This commit is contained in:
Jamil
2024-04-18 13:56:04 -07:00
committed by GitHub
parent 68016a8a56
commit f024570c6c

View File

@@ -100,9 +100,9 @@ jobs:
type=raw,value=${{ env.VERSION }}-${{ inputs.sha }}
- name: Sanitize github.ref_name
run: |
# `ref_name` contains `/` which is not a valid docker image tag
# `ref_name` contains `/`, '_' or '=' which is not a valid docker image tag
REF="${{ github.ref_name }}"
CACHE_TAG="${REF//\//-}"
CACHE_TAG="${REF//[\/_=]/-}"
echo "CACHE_TAG=$CACHE_TAG" >> "$GITHUB_ENV"
- name: Build and push control plane images
id: build
@@ -260,9 +260,9 @@ jobs:
type=raw,value=${{ env.MAJOR_MINOR_VERSION }}
- name: Sanitize github.ref_name
run: |
# `ref_name` contains `/` which is not a valid docker image tag
# `ref_name` contains `/`, '_' or '=' which is not a valid docker image tag
REF="${{ github.ref_name }}"
CACHE_TAG="${REF//\//-}"
CACHE_TAG="${REF//[\/_=]/-}"
echo "CACHE_TAG=$CACHE_TAG" >> "$GITHUB_ENV"
- name: Build Docker images
id: build