Skip to content

Commit

Permalink
Using sed for substring replacement instead of bash builtings. GHA do…
Browse files Browse the repository at this point in the history
…esn't like all the nested curly braces. RE:natcap#1431
  • Loading branch information
phargogh committed Oct 19, 2023
1 parent bb64267 commit a3f951f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Build docker
run: |
# Replace / (invalid character) with .
SANITIZED_REF="${{ github.ref_name }//\//.}"
SANITIZED_REF="$(echo ${{github.ref_name}} | sed 's|/|.|g')"
cd docker && docker build \
-t ghcr.io/${{ github.repository_owner }}/${{ env.CONTAINER_NAME }}:latest \
-t ghcr.io/${{ github.repository_owner }}/${{ env.CONTAINER_NAME }}:${{ github.sha}} \
Expand Down

0 comments on commit a3f951f

Please sign in to comment.