-
Notifications
You must be signed in to change notification settings - Fork 11
38 lines (36 loc) · 1006 Bytes
/
publish.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
name: Publish Docker Images
on:
push:
branches:
- master
release:
types:
- published
jobs:
publish-master:
runs-on: ubuntu-20.04
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@master
- name: Build and Publish master
uses: VaultVulp/gp-docker-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
image-name: memgator
image-tag: master
publish-release:
runs-on: ubuntu-20.04
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@master
- name: Build and Publish latest
uses: VaultVulp/gp-docker-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
image-name: memgator
- name: Build and Publish versioned
uses: VaultVulp/gp-docker-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
image-name: memgator
extract-git-tag: true