From 22687177120fe66b346e3c01f1d1f59118a698d8 Mon Sep 17 00:00:00 2001 From: Dries Augustyns Date: Tue, 20 Aug 2024 10:57:56 +0200 Subject: [PATCH] Added workflow for canary image --- .github/workflows/docker-build-canary.yml | 32 +++++++++++++++++++ ...docker-build.yml => docker-build-prod.yml} | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/docker-build-canary.yml rename .github/workflows/{docker-build.yml => docker-build-prod.yml} (94%) diff --git a/.github/workflows/docker-build-canary.yml b/.github/workflows/docker-build-canary.yml new file mode 100644 index 00000000..f5841e1a --- /dev/null +++ b/.github/workflows/docker-build-canary.yml @@ -0,0 +1,32 @@ +name: Build and Push Docker image (Canary) + +on: + push: + branches: + - main + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Log in to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + push: true + tags: | + driaug/plunk:canary + platforms: linux/amd64,linux/arm64 \ No newline at end of file diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build-prod.yml similarity index 94% rename from .github/workflows/docker-build.yml rename to .github/workflows/docker-build-prod.yml index 55abd199..9bbb945c 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build-prod.yml @@ -1,4 +1,4 @@ -name: Build and Push Docker image +name: Build and Push Docker image (Production) on: push: