From df7fbb4b3e01aee0dbda933a0b75049a822e2872 Mon Sep 17 00:00:00 2001 From: NickChecan Date: Sat, 12 Oct 2024 06:24:20 +0000 Subject: [PATCH] chore: implement job to publish images --- .github/workflows/pipeline.yaml | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml index 5a6d15e..db96495 100644 --- a/.github/workflows/pipeline.yaml +++ b/.github/workflows/pipeline.yaml @@ -65,17 +65,25 @@ jobs: VARIANT: ${{ matrix.variant.VERSION }} run: test/${{ matrix.variant.IMAGE }}/test.sh - # publish: - # name: Publish images - # runs-on: ubuntu-latest - # needs: - # - setup - # - test - # strategy: - # matrix: - # variant: ${{ fromJson(needs.setup.outputs.matrix) }} - # fail-fast: false - # steps: + publish: + name: Publish images + runs-on: ubuntu-latest + needs: + - setup + - test + strategy: + matrix: + variant: ${{ fromJson(needs.setup.outputs.matrix) }} + fail-fast: false + steps: + + - name: Build devcontainer + run: | + echo "starting devcontainer build..." + devcontainer build \ + --workspace-folder dist/${{ matrix.variant.IMAGE }}/${{ matrix.variant.VERSION }}/ \ + --image-name ghcr.io/The-Nefarious-Developer/${{ matrix.variant.IMAGE }}:${{ matrix.variant.VERSION }} \ + # --no-cache true # - name: Checkout # uses: actions/checkout@v4