Skip to content

Commit 6532671

Browse files
committed
fix(workflows): SAFE_TAG error
1 parent 7727eb2 commit 6532671

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/test-install.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
3535
- name: Set up docker container for ${{ matrix.distro }}
3636
run: |
37-
SAFE_TAG="${{ matrix.distro//[:\/]/-}}"
3837
echo "FROM ${{ matrix.distro }}" > Dockerfile
3938
echo "COPY install.sh /install.sh" >> Dockerfile
4039
echo 'RUN chmod +x /install.sh' >> Dockerfile
@@ -55,10 +54,10 @@ jobs:
5554
5655
- name: Build the test container
5756
run: |
58-
SAFE_TAG="${{ matrix.distro//[:\/]/-}}"
57+
SAFE_TAG=$(echo "${{ matrix.distro }}" | tr ':/' '-')
5958
docker build -t installsh-test:$SAFE_TAG .
6059
6160
- name: Run install.sh in container
6261
run: |
63-
SAFE_TAG="${{ matrix.distro//[:\/]/-}}"
62+
SAFE_TAG=$(echo "${{ matrix.distro }}" | tr ':/' '-')
6463
docker run --rm installsh-test:$SAFE_TAG bash -c "cd /home/testuser && bash /install.sh"

0 commit comments

Comments
 (0)