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