Fixes workflow with using $
for interpreting escape sequences
#35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dev Container Build and Push Image | |
on: | |
push: | |
paths: | |
- '.github/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
id: checkout | |
uses: actions/checkout@v4 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Convert Repository name to lower case | |
id: lowercase | |
run: echo "REPO=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV | |
- name: Pre-build Dev Container image | |
uses: devcontainers/[email protected] | |
with: | |
subFolder: .github | |
imageName: ghcr.io/${{ env.REPO }} | |
cacheFrom: ghcr.io/${{ github.repository }} | |
push: always |