-
Notifications
You must be signed in to change notification settings - Fork 5
62 lines (51 loc) · 2.77 KB
/
build-and-push-go-images.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
name: Build and Push Go Images
on: [push]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: 'Build and push "authserver" image'
run: |
docker build -t ghcr.io/${{github.actor}}/authserver:${{github.ref_name}} -f apps/authserver/Dockerfile .
docker push ghcr.io/${{github.actor}}/authserver:${{github.ref_name}}
- name: 'Build and push "charserver" image'
run: |
docker build -t ghcr.io/${{github.actor}}/charserver:${{github.ref_name}} -f apps/charserver/Dockerfile .
docker push ghcr.io/${{github.actor}}/charserver:${{github.ref_name}}
- name: 'Build and push "chatserver" image'
run: |
docker build -t ghcr.io/${{github.actor}}/chatserver:${{github.ref_name}} -f apps/chatserver/Dockerfile .
docker push ghcr.io/${{github.actor}}/chatserver:${{github.ref_name}}
- name: 'Build and push "game-load-balancer" image'
run: |
docker build -t ghcr.io/${{github.actor}}/game-load-balancer:${{github.ref_name}} -f apps/game-load-balancer/Dockerfile .
docker push ghcr.io/${{github.actor}}/game-load-balancer:${{github.ref_name}}
- name: 'Build and push "guidserver" image'
run: |
docker build -t ghcr.io/${{github.actor}}/guidserver:${{github.ref_name}} -f apps/guidserver/Dockerfile .
docker push ghcr.io/${{github.actor}}/guidserver:${{github.ref_name}}
- name: 'Build and push "guildserver" image'
run: |
docker build -t ghcr.io/${{github.actor}}/guildserver:${{github.ref_name}} -f apps/guildserver/Dockerfile .
docker push ghcr.io/${{github.actor}}/guildserver:${{github.ref_name}}
- name: 'Build and push "mailserver" image'
run: |
docker build -t ghcr.io/${{github.actor}}/mailserver:${{github.ref_name}} -f apps/mailserver/Dockerfile .
docker push ghcr.io/${{github.actor}}/mailserver:${{github.ref_name}}
- name: 'Build and push "groupserver" image'
run: |
docker build -t ghcr.io/${{github.actor}}/groupserver:${{github.ref_name}} -f apps/groupserver/Dockerfile .
docker push ghcr.io/${{github.actor}}/groupserver:${{github.ref_name}}
- name: 'Build and push "servers-registry" image'
run: |
docker build -t ghcr.io/${{github.actor}}/servers-registry:${{github.ref_name}} -f apps/servers-registry/Dockerfile .
docker push ghcr.io/${{github.actor}}/servers-registry:${{github.ref_name}}