fix: check if db still exists where needed (#10) #19
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: Release | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build: | |
name: Build new docker image and push it to DockerHub | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: 1.17.x | |
- name: Login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Build & publish container images | |
run: | | |
export VERSION=${GITHUB_REF#refs/*/} | |
export IMG="anbraten/external-database-operator:${VERSION}" | |
make build | |
make docker-build | |
make docker-push | |
- name: Generate latest manifest file | |
run: | | |
export VERSION=${GITHUB_REF#refs/*/} | |
export IMG="anbraten/external-database-operator:${VERSION}" | |
make generate-manifests | |
- name: Release latest manifest | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: deploy/external-database-controller.yml |