From 738e41d3cb511e874596def2fe67a98909a4bc67 Mon Sep 17 00:00:00 2001 From: Xander Bil Date: Tue, 26 Nov 2024 19:04:25 +0100 Subject: [PATCH 1/2] add docker workflow --- .github/workflows/docker.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..dab26d4 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,31 @@ +name: Docker main build + +on: + push: + branches: + - main + pull_request: + +concurrency: + group: docker-main + cancel-in-progress: true + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build the new image + run: docker build . -t ghcr.io/zeuswpi/haldis:${{ github.sha }} + - name: Tag the new image with latest + run: docker tag ghcr.io/zeuswpi/haldis:${{ github.sha }} ghcr.io/zeuswpi/haldis:latest + - name: Push Docker image + run: docker push --all-tags ghcr.io/zeuswpi/haldis From 2d2cb59ed27943af2cdc078abbc2d4a713d28d8f Mon Sep 17 00:00:00 2001 From: Xander Bil Date: Tue, 26 Nov 2024 19:29:44 +0100 Subject: [PATCH 2/2] update --- .github/workflows/docker.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index dab26d4..f775e47 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -4,7 +4,6 @@ on: push: branches: - main - pull_request: concurrency: group: docker-main