Skip to content

Commit

Permalink
fix: convert Docker tags from newline to comma (#14)
Browse files Browse the repository at this point in the history
Using the `join` function did not work appropriately so using a separate step to convert newlines to commas in the Docker image tag list.
  • Loading branch information
jwbennet authored Jan 28, 2024
1 parent c152e36 commit b7b9744
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/devcontainer-build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@ jobs:
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Process tags for Docker image
run: |
echo "image_tags=${{ steps.meta.outputs.tags }}" | tr '\n' ',' >> "$GITHUB_ENV"
- name: Pre-build dev container image
uses: devcontainers/ci@v0.3
with:
subFolder: .github
imageName: ghcr.io/${{ github.repository }}
imageTag: ${{ join(steps.meta.outputs.tags) }}
imageTag: ${{ image_tags }}
cacheFrom: ghcr.io/${{ github.repository }}
push: always

0 comments on commit b7b9744

Please sign in to comment.