mirror of https://github.com/apache/superset.git
38 lines
1004 B
YAML
38 lines
1004 B
YAML
name: Docker
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
jobs:
|
|
config:
|
|
runs-on: "ubuntu-latest"
|
|
outputs:
|
|
has-secrets: ${{ steps.check.outputs.has-secrets }}
|
|
steps:
|
|
- name: "Check for secrets"
|
|
id: check
|
|
shell: bash
|
|
run: |
|
|
if [ -n "${{ (secrets.DOCKERHUB_USER != '' && secrets.DOCKERHUB_TOKEN != '') || '' }}" ]; then
|
|
echo "has-secrets=1" >> "$GITHUB_OUTPUT"
|
|
fi
|
|
|
|
docker-release:
|
|
needs: config
|
|
if: needs.config.outputs.has-secrets
|
|
name: docker-release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
|
|
uses: actions/checkout@v3
|
|
with:
|
|
persist-credentials: false
|
|
submodules: recursive
|
|
ref: ${{ github.ref }}
|
|
- shell: bash
|
|
env:
|
|
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
|
|
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
run: |
|
|
.github/workflows/docker_build_push.sh
|