Configuring docker image tagging
- Ditching deploy/release, will release on push to master - Tag branch + version + major.minor
This commit is contained in:
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -2,7 +2,7 @@ name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master,develop,deploy/release]
|
||||
branches: [master,develop]
|
||||
|
||||
jobs:
|
||||
jest:
|
||||
@ -85,7 +85,7 @@ jobs:
|
||||
name: 'Publish: PyPi'
|
||||
runs-on: ubuntu-latest
|
||||
needs: [jest, tox]
|
||||
if: github.ref == 'refs/heads/deploy/release'
|
||||
if: github.ref == 'refs/heads/master'
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
@ -125,7 +125,7 @@ jobs:
|
||||
name: 'Publish: DockerHub'
|
||||
runs-on: ubuntu-latest
|
||||
needs: [jest, tox]
|
||||
if: github.ref == 'refs/heads/deploy/release'
|
||||
if: github.ref == 'refs/heads/master'
|
||||
steps:
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
@ -138,6 +138,10 @@ jobs:
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
images: jaedb/iris
|
||||
tags: |
|
||||
type=ref,event=push
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
|
||||
Reference in New Issue
Block a user