From bad4330330d1ca24a1d28c613eaf1bf889c391d7 Mon Sep 17 00:00:00 2001 From: glax Date: Sun, 30 Jul 2023 16:21:04 +0200 Subject: [PATCH] introduce branch cuttingedge --- .../workflows/docker-image-cuttingedge.yml | 58 +++++++++++++++++++ ...cker-image.yml => docker-image-master.yml} | 0 2 files changed, 58 insertions(+) create mode 100644 .github/workflows/docker-image-cuttingedge.yml rename .github/workflows/{docker-image.yml => docker-image-master.yml} (100%) diff --git a/.github/workflows/docker-image-cuttingedge.yml b/.github/workflows/docker-image-cuttingedge.yml new file mode 100644 index 0000000..1346138 --- /dev/null +++ b/.github/workflows/docker-image-cuttingedge.yml @@ -0,0 +1,58 @@ +name: Docker Image CI + +on: + push: + branches: [ "cuttingedge" ] + workflow_dispatch: + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + # https://github.com/docker/setup-qemu-action#usage + - name: Set up QEMU + uses: docker/setup-qemu-action@v2.2.0 + + # https://github.com/marketplace/actions/docker-setup-buildx + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v2.9.1 + + # https://github.com/docker/login-action#docker-hub + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + # https://github.com/docker/build-push-action#multi-platform-image + - name: Build and push API + uses: docker/build-push-action@v4.1.1 + with: + context: ./ + file: ./API/Dockerfile + #platforms: linux/amd64,linux/arm64,linux/riscv64,linux/ppc64le,linux/s390x,linux/386,linux/mips64le,linux/mips64,linux/arm/v7,linux/arm/v6 + platforms: linux/amd64 + pull: true + push: true + tags: | + glax/tranga-api:cuttingedge + + # https://github.com/docker/build-push-action#multi-platform-image + - name: Build and push Website + uses: docker/build-push-action@v4.1.1 + with: + context: ./Website + file: ./Website/Dockerfile + #platforms: linux/amd64,linux/arm64,linux/riscv64,linux/ppc64le,linux/s390x,linux/386,linux/mips64le,linux/mips64,linux/arm/v7,linux/arm/v6 + platforms: linux/amd64 + pull: true + push: true + tags: | + glax/tranga-website:cuttingedge diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image-master.yml similarity index 100% rename from .github/workflows/docker-image.yml rename to .github/workflows/docker-image-master.yml