Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bedrin authored Sep 13, 2021
1 parent 2103179 commit 1030e9a
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Docker Image CI

on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
Expand All @@ -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)

0 comments on commit 1030e9a

Please sign in to comment.