Skip to content

Commit

Permalink
ci: refactor action to enable multi-arch builds (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
MindTooth committed Apr 30, 2023
1 parent a92eb57 commit 3648283
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/dockerimage.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/publish-container.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: Publish Container image

on:
workflow_dispatch:
push:
branches:
- 'master'
tags:
- '*'
pull_request:
branches:
- 'master'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: webpronl/reveal-md
labels: |
org.opencontainers.image.licenses=MIT
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
provenance: false

0 comments on commit 3648283

Please sign in to comment.