Support versioned Docker builds (#1799)
This commit is contained in:
@@ -1,12 +1,22 @@
|
|||||||
name: Deploy docker
|
name: Deploy docker
|
||||||
on: [push]
|
on:
|
||||||
env:
|
push:
|
||||||
DEPLOY_NAME: gollumwiki/gollum:latest
|
branches:
|
||||||
|
- master
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ github.ref == 'refs/heads/master' }}
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Set deploy name to master
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
|
run: |
|
||||||
|
echo "DEPLOY_NAME=gollumwiki/gollum:master"
|
||||||
|
- name: Set deploy name to release version
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
run: |
|
||||||
|
echo "DEPLOY_NAME=gollumwiki/gollum:${{ github.ref_name }}"
|
||||||
- name: Check Out Repo
|
- name: Check Out Repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Login
|
- name: Login
|
||||||
|
|||||||
Reference in New Issue
Block a user