mirror of
https://github.com/DCsunset/taskwarrior-webui.git
synced 2025-08-21 23:03:07 +02:00
ci: add build for multi-platform
This commit is contained in:
parent
549a176cf6
commit
450ebaf3fa
1 changed files with 36 additions and 0 deletions
36
.github/workflows/build-and-publish.yml
vendored
Normal file
36
.github/workflows/build-and-publish.yml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
name: Build and Publish Docker Image
|
||||||
|
|
||||||
|
on: [push, workflow_dispatch]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
push_to_registry:
|
||||||
|
name: Build and Publish Docker Image
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out the repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# Support multiple platforms
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
|
- name: Log in to Docker Hub
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Get current date
|
||||||
|
id: date
|
||||||
|
run: echo "::set-output name=date::$(date +'%Y%m%d')"
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
|
push: true
|
||||||
|
tags: dcsunset/taskwarrior-webui:latest,dcsunset/taskwarrior-webui:${{ steps.date.outputs.date }}
|
Loading…
Add table
Add a link
Reference in a new issue