-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (41 loc) · 1.05 KB
/
action.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
name: Build Auth Service
on:
# Trigger the workflow on push or pull request,
push:
branches:
- master
- rc
- uat
- stable
- dtpw-*
- test-*
tags:
- "[vV][0-9]+.[0-9]+.[0-9]+"
pull_request:
branches:
- master
# Also trigger on page_build, as well as release created events
page_build:
release:
types: # This configuration does not affect the page_build event above
- created
concurrency: ${{ github.ref }}
jobs:
build:
name: Build Auth
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
id: checkout
- name: build-push
uses: docker/build-push-action@v1
env:
SSH_KEY: ${{ secrets.DEPLOYBOT_SSH_KEY }}
with:
username: ${{ secrets.DEPLOY_DOCKER_USERNAME }}
password: ${{ secrets.DEPLOY_DOCKER_PASSWORD }}
repository: imqs/auth
tag_with_ref: true
build_args: SSH_KEY=${{ env.SSH_KEY }}
cache_froms: golang:1.16, imqs/ubuntu-base:20.04