-
Notifications
You must be signed in to change notification settings - Fork 7
50 lines (43 loc) · 1.51 KB
/
docker-publish.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
name: Docker
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
- name: Log into registry ghcr.io
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push oms-go-worker Docker image
uses: docker/[email protected]
with:
platforms: linux/amd64,linux/arm64
target: oms-worker
tags: ghcr.io/temporalio/reference-app-orders-go-worker:latest
push: ${{ github.event_name != 'pull_request' }}
- name: Build and push oms-go-api Docker image
uses: docker/[email protected]
with:
platforms: linux/amd64,linux/arm64
target: oms-api
tags: ghcr.io/temporalio/reference-app-orders-go-api:latest
push: ${{ github.event_name != 'pull_request' }}
- name: Build and push oms-go-codec-server Docker image
uses: docker/[email protected]
with:
platforms: linux/amd64,linux/arm64
target: oms-codec-server
tags: ghcr.io/temporalio/reference-app-orders-go-codec-server:latest
push: ${{ github.event_name != 'pull_request' }}