-
Notifications
You must be signed in to change notification settings - Fork 20
72 lines (70 loc) · 2.16 KB
/
image.yaml
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
name: docker image build and push
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
workflow_dispatch:
jobs:
build-tortoise:
runs-on: ubuntu-20.04
timeout-minutes: 5
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Build
run: docker build -t ghcr.io/mercari/tortoise:${REF##*/} .
env:
REF: ${{ github.ref }}
- name: Login
run: echo $TOKEN | docker login ghcr.io -u ${OWNER,,} --password-stdin
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
OWNER: ${{ github.repository_owner }}
- name: Push
run: docker push ghcr.io/mercari/tortoise:${REF##*/}
env:
REF: ${{ github.ref }}
build-loadtester-server:
runs-on: ubuntu-20.04
defaults:
run:
working-directory: loadtester/server
timeout-minutes: 5
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Build
run: docker build -t ghcr.io/mercari/loadtester-server:${REF##*/} .
env:
REF: ${{ github.ref }}
- name: Login
run: echo $TOKEN | docker login ghcr.io -u ${OWNER,,} --password-stdin
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
OWNER: ${{ github.repository_owner }}
- name: Push
run: docker push ghcr.io/mercari/loadtester-server:${REF##*/}
env:
REF: ${{ github.ref }}
build-loadtester-client:
runs-on: ubuntu-20.04
defaults:
run:
working-directory: loadtester/client
timeout-minutes: 5
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Build
run: docker build -t ghcr.io/mercari/loadtester-client:${REF##*/} .
env:
REF: ${{ github.ref }}
- name: Login
run: echo $TOKEN | docker login ghcr.io -u ${OWNER,,} --password-stdin
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
OWNER: ${{ github.repository_owner }}
- name: Push
run: docker push ghcr.io/mercari/loadtester-client:${REF##*/}
env:
REF: ${{ github.ref }}