v5.4.0 #11
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-build-push-release | |
on: | |
release: | |
types: [released, edited] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout repo | |
uses: actions/checkout@v2 | |
- | |
name: Get release version without v | |
id: release_version | |
uses: battila7/[email protected] | |
- | |
name: Docker login | |
id: docker_login | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- | |
name: Build and push image | |
id: docker_build | |
uses: docker/build-push-action@v2 | |
with: | |
push: true | |
tags: 3dcitydb/wfs:${{ steps.release_version.outputs.version-without-v }},3dcitydb/wfs:latest | |
- | |
name: Image digest | |
run: echo ${{ steps.docker_build.outputs.digest }} |