From 90a30961ff6efc5ea0619f0eee1e7af6aa426ad0 Mon Sep 17 00:00:00 2001 From: Daniel Hiller Date: Wed, 13 Sep 2023 22:39:37 +0200 Subject: [PATCH] chore: Add dev container, based on latest commit --- .../build-and-push-docker-image-amd64-dev.yml | 34 +++++++++++++++++++ .../build-and-push-docker-image-arm-dev.yml | 34 +++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 .github/workflows/build-and-push-docker-image-amd64-dev.yml create mode 100644 .github/workflows/build-and-push-docker-image-arm-dev.yml diff --git a/.github/workflows/build-and-push-docker-image-amd64-dev.yml b/.github/workflows/build-and-push-docker-image-amd64-dev.yml new file mode 100644 index 00000000..5ace01ee --- /dev/null +++ b/.github/workflows/build-and-push-docker-image-amd64-dev.yml @@ -0,0 +1,34 @@ +name: Build and push Docker DEV image amd64 + +on: + push: + branches: [master] + +jobs: + build-and-push-docker-image-dev-amd64: + runs-on: [self-hosted, ubuntu-latest] + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v4 + with: + context: . + platforms: linux/amd64 + push: true + tags: | + ghcr.io/plankanban/planka:dev diff --git a/.github/workflows/build-and-push-docker-image-arm-dev.yml b/.github/workflows/build-and-push-docker-image-arm-dev.yml new file mode 100644 index 00000000..eb5691fa --- /dev/null +++ b/.github/workflows/build-and-push-docker-image-arm-dev.yml @@ -0,0 +1,34 @@ +name: Build and push Docker DEV image arm + +on: + push: + branches: [master] + +jobs: + build-and-push-docker-image-dev-arm: + runs-on: [self-hosted, ubuntu-latest] + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v4 + with: + context: . + platforms: linux/arm64,linux/arm/v7 + push: true + tags: | + ghcr.io/plankanban/planka:dev