mirror of
https://github.com/m0wer/tiddlywiki-docker.git
synced 2026-01-23 02:24:25 +00:00
ci(docker): build for arm
This commit is contained in:
parent
c71a3fcd89
commit
f7bbe5cc1c
1 changed files with 10 additions and 14 deletions
24
.github/workflows/docker.yml
vendored
24
.github/workflows/docker.yml
vendored
|
|
@ -1,8 +1,9 @@
|
|||
---
|
||||
name: docker
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 3 5 * *' # every friday at 3am
|
||||
- cron: 0 3 5 * * # every friday at 3am
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
|
|
@ -10,21 +11,18 @@ on:
|
|||
- '*.*.*'
|
||||
pull_request:
|
||||
branches:
|
||||
- 'master'
|
||||
- master
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
-
|
||||
name: Set up dynamic build ARGs
|
||||
- name: Set up dynamic build ARGs
|
||||
id: getargs
|
||||
run: echo "::set-output name=version::$(cat ./stable/VERSION)"
|
||||
-
|
||||
name: Docker meta
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v3
|
||||
with:
|
||||
|
|
@ -41,18 +39,16 @@ jobs:
|
|||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
type=sha
|
||||
-
|
||||
name: Login to DockerHub
|
||||
- name: Login to DockerHub
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Build and push
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
platforms: linux/amd64
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue