Browse Source

Merge pull request #1991 from doccano/enhancement/publishDockerImage

Update publish-image workflow
pull/1992/head
Hiroki Nakayama 2 years ago
committed by GitHub
parent
commit
2458f25915
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 20 deletions
  1. 36
      .github/workflows/publish-image.yml

36
.github/workflows/publish-image.yml

@ -4,8 +4,6 @@ on:
schedule:
- cron: '0 10 * * *' # everyday at 10am
push:
branches:
- master
tags:
- 'v*.*.*'
@ -13,36 +11,34 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Docker meta
- name: Checkout
uses: actions/checkout@v3
- name: Docker meta
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v1
with:
images: doccano/doccano
tag-sha: true
tag-semver: |
{{version}}
{{major}}.{{minor}}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: ./docker/Dockerfile

Loading…
Cancel
Save