Update docker workflow (#50)
This commit is contained in:
parent
5bb067be1a
commit
9ce34e69ea
1 changed files with 11 additions and 6 deletions
17
.github/workflows/docker.yaml
vendored
17
.github/workflows/docker.yaml
vendored
|
@ -5,7 +5,7 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- 'v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
|
@ -15,11 +15,15 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: docker_meta
|
id: meta
|
||||||
uses: crazy-max/ghaction-docker-meta@v2.1.1
|
uses: crazy-max/ghaction-docker-meta@v2.1.1
|
||||||
with:
|
with:
|
||||||
images: distribyted/distribyted
|
images: distribyted/distribyted
|
||||||
tag-sha: true
|
tags: |
|
||||||
|
type=ref,event=branch
|
||||||
|
type=ref,event=pr
|
||||||
|
type=semver,pattern={{version}}
|
||||||
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v1
|
||||||
|
@ -37,9 +41,10 @@ jobs:
|
||||||
id: docker_build
|
id: docker_build
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
push: true
|
context: .
|
||||||
tags: ${{ steps.docker_meta.outputs.tags }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
labels: ${{ steps.docker_meta.outputs.labels }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
|
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
|
||||||
|
|
||||||
- name: Update repo description
|
- name: Update repo description
|
||||||
|
|
Loading…
Reference in a new issue