Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #688 from cglewis/master
Browse files Browse the repository at this point in the history
push image and build multi-arch
  • Loading branch information
cglewis authored Feb 24, 2020
2 parents af5d0c9 + eb20690 commit a34478e
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,21 @@ jobs:
with:
version: latest

- name: Build
- name: Build Docker
run: |
docker build \
-t cyberreboot/crviz:${{ steps.change_version.outputs.VERSION }} . && \
docker build \
-f Dockerfile.gh \
-t cyberreboot/crviz-gh:${{ steps.change_version.outputs.VERSION }} .
if: github.repository == 'cyberreboot/crviz' && github.event_name == 'pull_request'

- name: Push Docker
env:
DOCKER_CLI_EXPERIMENTAL: enabled
run: |
docker buildx build \
--platform linux/amd64,linux/arm/v7,linux/arm64 \
--push \
-t cyberreboot/crviz:${{ steps.change_version.outputs.VERSION }} .
docker buildx build \
-f Dockerfile.gh \
-t cyberreboot/crviz-gh:${{ steps.change_version.outputs.VERSION }} .
if: github.repository == 'cyberreboot/crviz'
if: github.repository == 'cyberreboot/crviz' && github.event_name == 'push'

0 comments on commit a34478e

Please sign in to comment.