Skip to content

Update to 9.0.6

Update to 9.0.6 #20

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