From f868e4bffaa74fbd9f7c1183f1f07ae9e1208d36 Mon Sep 17 00:00:00 2001 From: Jorrit Boekel Date: Wed, 29 May 2024 14:51:38 +0200 Subject: [PATCH] Add login to actions and add registry to container spec in action --- .github/workflows/release_container.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release_container.yml b/.github/workflows/release_container.yml index d7a25c2..3049a20 100644 --- a/.github/workflows/release_container.yml +++ b/.github/workflows/release_container.yml @@ -24,9 +24,16 @@ jobs: id: get-version run: echo "wf_version=$(nextflow config -value manifest.version)" >> $GITHUB_OUTPUT + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build container uses: docker/build-push-action@v5 with: context: . push: true - tags: lehtiolab/nfhelaqc:${{ steps.get-version.outputs.wf_version }} + tags: ghcr.io/lehtiolab/nfhelaqc:${{ steps.get-version.outputs.wf_version }}