-
Notifications
You must be signed in to change notification settings - Fork 7
69 lines (59 loc) · 1.6 KB
/
docker-ci.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
name: Docker Build And Push CI
on:
workflow_dispatch:
inputs:
version:
description: 'Version (v1.0.4)'
required: true
env:
REGISTRY: gcr.io
GCP_PID: ${{ secrets.GCP_PID }}
GCP_KEY: ${{ secrets.GCP_CICD_KEY }}
jobs:
#
# test:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Install modules
# run: npm i
# - name: Run tests
# run: npm run test:detect
docker-push-api:
# needs: test
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
steps:
- uses: actions/checkout@v2
- name: Build and push Docker Panel API image
uses: docker/build-push-action@v1
with:
username: _json_key
password: ${{ env.GCP_KEY }}
registry: ${{ env.REGISTRY }}
repository: ${{ env.GCP_PID }}/utl-api
dockerfile: "_docker/api.Dockerfile"
push: true
tag_with_sha: true
tags: latest, ${{ github.event.inputs.version }}
docker-push-cron:
# needs: test
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
steps:
- uses: actions/checkout@v2
- name: Build and push Docker Panel API Cron image
uses: docker/build-push-action@v1
with:
username: _json_key
password: ${{ env.GCP_KEY }}
registry: ${{ env.REGISTRY }}
repository: ${{ env.GCP_PID }}/utl-api-cron
dockerfile: "_docker/cron.Dockerfile"
push: true
tag_with_sha: true
tags: latest, ${{ github.event.inputs.version }}