Skip to content

Commit

Permalink
Update build-dev-container.yaml to use double quotes for name field
Browse files Browse the repository at this point in the history
  • Loading branch information
npv2k1 committed Apr 20, 2024
1 parent c826c8d commit 976f0df
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/build-dev-container.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'Build dev container'
name: "Build dev container"

on:
on:
push:
branches:
- master
Expand All @@ -10,38 +10,38 @@ jobs:
list-dir:
runs-on: ubuntu-latest
outputs:
dir: ${{ steps.list-dir.outputs.dir }}
dir: ${{ steps.list-dir.outputs.dir }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4

- name: List Dir
id: list-dir
uses: pnstack/actions/list-dir@main
with:
with:
dir: templates
- name: log
run: echo ${{ steps.list-dir.outputs.dir }}

build:
runs-on: ubuntu-latest
needs: [list-dir]
needs: [list-dir]
strategy:
fail-fast: false
matrix:
dir: ${{fromJson(needs.list-dir.outputs.dir)}}
dir: ${{fromJson(needs.list-dir.outputs.dir)}}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand All @@ -51,7 +51,8 @@ jobs:
uses: devcontainers/ci@v0.3
with:
subFolder: ./templates/${{ matrix.dir }}
imageName: ghcr.io/pnstack/codespace/${{ matrix.dir }}
cacheFrom: ghcr.io/pnstack/codespace/${{ matrix.dir }}:latest
imageName: ghcr.io/pnstack/codespace/${{ matrix.dir }}
cacheFrom: ghcr.io/pnstack/codespace/${{ matrix.dir }}:latest
imageTag: ${{ github.ref == 'refs/heads/master' && 'latest' || github.ref_name }}
push: always
platform: linux/amd64,linux/arm64
push: always

0 comments on commit 976f0df

Please sign in to comment.