mirror of
https://github.com/apache/superset.git
synced 2026-04-17 15:15:20 +00:00
ci(docker): build image on release (#11828)
* feat(docker): build image on release * separate trigger separate handling * fix triggers * less states for docker build on PR's
This commit is contained in:
committed by
GitHub
parent
35784106dd
commit
f121107bbe
9
.github/workflows/docker.yml
vendored
9
.github/workflows/docker.yml
vendored
@@ -1,6 +1,13 @@
|
||||
name: Docker
|
||||
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
3
.github/workflows/docker_build_push.sh
vendored
3
.github/workflows/docker_build_push.sh
vendored
@@ -24,6 +24,9 @@ if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
|
||||
REFSPEC="${GITHUB_HEAD_REF/[^a-zA-Z0-9]/-}"
|
||||
PR_NUM=$(echo "${GITHUB_REF}" | sed 's:refs/pull/::' | sed 's:/merge::')
|
||||
LATEST_TAG="pr-${PR_NUM}"
|
||||
elif [[ "${GITHUB_EVENT_NAME}" == "release" ]]; then
|
||||
REFSPEC="${GITHUB_REF}"
|
||||
LATEST_TAG="${REFSPEC}"
|
||||
else
|
||||
REFSPEC=$(echo "${GITHUB_REF}" | sed 's:refs/heads/::' | sed 's/[^a-zA-Z0-9]/-/')
|
||||
LATEST_TAG="${REFSPEC}"
|
||||
|
||||
Reference in New Issue
Block a user