Merge pull request #50 from burmanm/ubi8_base #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Release | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
jobs: | |
release_config_builder: | |
name: Release Cass Config Builder | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Login to DockerHub | |
run: echo "${{ secrets.DOCKERHUB_PASS }}" | docker login -u "${{ secrets.DOCKERHUB_USER }}" --password-stdin | |
- name: Setup Buildx | |
id: buildx | |
uses: crazy-max/ghaction-docker-buildx@v3 | |
- name: Cache Docker layers | |
uses: actions/cache@v2 | |
id: cache | |
with: | |
path: /tmp/.buildx-cache | |
key: ${{ runner.os }}-buildx-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-buildx- | |
- name: Publish to Dockerhub | |
run: | | |
export GITHUB_REPO_URL="https://github.com/${{ github.repository }}" | |
./scripts/push-release.sh |