From 30c27f8f52a469e2d00681b18000f48141009b0a Mon Sep 17 00:00:00 2001 From: Emmanuel Mathot Date: Mon, 21 Oct 2024 20:12:37 +0200 Subject: [PATCH] Add login step to container registry in webapp workflow --- .github/workflows/webapp.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/webapp.yaml b/.github/workflows/webapp.yaml index 9e76909..6b499bf 100644 --- a/.github/workflows/webapp.yaml +++ b/.github/workflows/webapp.yaml @@ -26,11 +26,18 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Log in to the Container registry + uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build container uses: docker/build-push-action@v6 with: platforms: linux/amd64 - context: ./webapp/ + context: webapp/ file: ./webapp/Dockerfile push: true - tags: "polder:dev" \ No newline at end of file + tags: "polder:dev"