diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 404dbd5..afb192c 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -1,6 +1,7 @@ name: Docker Image CI on: + workflow_dispatch: push: branches: [ main ] pull_request: @@ -14,5 +15,21 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag docker-x-server:$(date +%s) + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v1 + - name: Available platforms + run: echo ${{ steps.buildx.outputs.platforms }} + - name: Build and push + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + platforms: linux/amd64,linux/arm/v7,linux/arm64 + push: false + tags: | + bedrin/docker-x-server:latest +# - name: Build the Docker image +# run: docker build . --file Dockerfile --tag docker-x-server:$(date +%s)