Skip to content

Commit

Permalink
Use safe-characters for CI image tag (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianSipos authored Aug 22, 2024
1 parent aad7dce commit c478425
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: "1"
DOCKER_IMAGE_TAG: ${{ github.head_ref || github.ref_name }}
AUTHNZ_EMU: "1"
ANMS_COMPOSE_OPTS: "-f docker-compose.yml -p anms"
AGENT_COMPOSE_OPTS: "-f agent-compose.yml -p agents"
Expand All @@ -26,6 +25,10 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
- name: Tag name env
run: |
DOCKER_IMAGE_TAG=$(echo ${{ github.head_ref || github.ref_name }} | sed 's/[^a-zA-Z0-9\-\._]/-/g')
echo "DOCKER_IMAGE_TAG=${DOCKER_IMAGE_TAG}" >> $GITHUB_ENV
- name: Build
run: |
./build.sh buildonly
Expand Down
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ variables:
# for Ruby/bolt
SSL_CERT_FILE: /etc/pki/tls/certs/ca-bundle.crt
# Project-specific environment
DOCKER_IMAGE_TAG: $CI_COMMIT_REF_NAME
DOCKER_IMAGE_TAG: $CI_COMMIT_REF_SLUG
DOCKER_IMAGE_PREFIX: $DOCKER_REGISTRY/$DOCKER_GROUP/
AUTHNZ_EMU: 1
ANMS_COMPOSE_OPTS: -f docker-compose.yml -p anms
Expand Down

0 comments on commit c478425

Please sign in to comment.