Update to 9.0.6 #20
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: Publish Releases to DockerHub | |
on: | |
release: | |
types: [ released, prereleased ] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/github-script@v5 | |
id: determine-tag | |
with: | |
script: | | |
const tag = ${{ toJSON(github.event) }}.release.tag_name.replace('v', '') | |
console.log('Publishing release ' + tag) | |
return tag | |
result-encoding: string | |
- name: Build Docker image | |
run: docker build -t stefanneuhaus/dependencycheck-central-mysql:${{ steps.determine-tag.outputs.result }} -t stefanneuhaus/dependencycheck-central-mysql:latest . | |
- name: Login and push to DockerHub | |
env: | |
DH_PWD: ${{ secrets.DOCKERHUB_PASSWORD }} | |
run: | | |
echo $DH_PWD | docker login -u stefanneuhaus --password-stdin | |
docker push --all-tags stefanneuhaus/dependencycheck-central-mysql |