-
Notifications
You must be signed in to change notification settings - Fork 2
116 lines (95 loc) · 3.04 KB
/
docker.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: Docker
on:
push:
tags: ["*"]
pull_request:
jobs:
controller:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Login to Github Packages
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: crazy-max/ghaction-docker-meta@v1
with:
images: ghcr.io/glothriel/wormhole-controller
- name: Build image and push to GCR
uses: docker/build-push-action@v5
with:
context: .
build-args: |
USER_ID=1000
GROUP_ID=1000
VERSION=${{ steps.meta.outputs.tags }}
PROJECT=..
file: docker/goDockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: "${{ steps.meta.outputs.tags }},ghcr.io/glothriel/wormhole-controller:latest"
labels: ${{ steps.meta.outputs.labels }}
wireguard:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Login to Github Packages
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: crazy-max/ghaction-docker-meta@v1
with:
images: ghcr.io/glothriel/wormhole-wireguard
- name: Build image and push to GCR
uses: docker/build-push-action@v5
with:
context: docker
file: docker/wgDockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: "${{ steps.meta.outputs.tags }},ghcr.io/glothriel/wormhole-wireguard:latest"
labels: ${{ steps.meta.outputs.labels }}
nginx:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Login to Github Packages
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: crazy-max/ghaction-docker-meta@v1
with:
images: ghcr.io/glothriel/wormhole-nginx
- name: Build image and push to GCR
uses: docker/build-push-action@v5
with:
context: docker
file: docker/nginxDockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: "${{ steps.meta.outputs.tags }},ghcr.io/glothriel/wormhole-nginx:latest"
labels: ${{ steps.meta.outputs.labels }}