From 7feeafc5d0b3509d5e072b84bb25c6822dfdf064 Mon Sep 17 00:00:00 2001 From: NickChecan Date: Sat, 12 Oct 2024 07:31:51 +0000 Subject: [PATCH] chore: add login and deploy to ghcr --- .github/workflows/pipeline.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml index 02ab3e6..9646bab 100644 --- a/.github/workflows/pipeline.yaml +++ b/.github/workflows/pipeline.yaml @@ -102,4 +102,14 @@ jobs: run: | 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 newline at end of file + --image-name ghcr.io/the-nefarious-developer/${{ matrix.variant.IMAGE }}:${{ matrix.variant.VERSION }} + + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.NEFARIOUS_TOKEN }} + + - name: Push image to GitHub Container Registry + run: docker push ghcr.io/the-nefarious-developer/${{ matrix.variant.IMAGE }}:${{ matrix.variant.VERSION }} \ No newline at end of file