From 2efffccb5d325690686a1cb26b46f7161d8a6eff Mon Sep 17 00:00:00 2001 From: "Chris S." Date: Tue, 19 Nov 2024 19:15:57 +0100 Subject: [PATCH] Create docker-image.yml --- .github/workflows/docker-image.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..4a9b6c1 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,31 @@ +name: Docker Image CI + +on: + push: + branches: + - main + +jobs: + main-image: + name: build "main" image + runs-on: "ubuntu-latest" + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v4 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v3.3.0 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v6.5.0 + with: + context: . + push: true + tags: ghcr.io/Reigertje/planningpoker:main +