-
Notifications
You must be signed in to change notification settings - Fork 55
85 lines (74 loc) · 2.37 KB
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Publish Docker image
on:
push:
branches:
- main
release:
types:
- released
jobs:
publish_to_docker_hub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker meta for Commit image
id: meta_commit
uses: docker/metadata-action@v4
if: github.event_name == 'push'
with:
images: temporaliotest/ui
tags: |
type=sha,format=short,event=branch
latest
- name: Push Commit image to DockerHub
uses: docker/build-push-action@v4
if: github.event_name == 'push'
with:
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta_commit.outputs.tags }}
labels: ${{ steps.meta_commit.outputs.labels }}
- name: Docker meta for Release image
id: meta_release
uses: docker/metadata-action@v4
if: github.event_name == 'release'
with:
images: temporalio/ui
tags: |
type=semver,pattern={{version}}
latest
- name: Push Release image to DockerHub
uses: docker/build-push-action@v4
if: github.event_name == 'release'
with:
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta_release.outputs.tags }}
labels: ${{ steps.meta_release.outputs.labels }}
- name: Docker meta for Release image
id: cloud_meta_release
uses: docker/metadata-action@v4
if: github.event_name == 'release'
with:
images: temporalio/cloud-ui
tags: |
type=semver,pattern={{version}}
latest
- name: Push Release image to DockerHub
uses: docker/build-push-action@v4
if: github.event_name == 'release'
with:
push: true
build-args: TEMPORAL_CLOUD_UI=true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.cloud_meta_release.outputs.tags }}
labels: ${{ steps.cloud_meta_release.outputs.labels }}