diff --git a/.github/workflows/docker-build-canary.yml b/.github/workflows/docker-build-canary.yml new file mode 100644 index 00000000..b16681f7 --- /dev/null +++ b/.github/workflows/docker-build-canary.yml @@ -0,0 +1,32 @@ +name: Build and Push Docker image (Canary) + +on: + push: + branches: + - canary + +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: