mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-25 15:35:29 +00:00
20 lines
661 B
YAML
20 lines
661 B
YAML
# dockerhub-push pushes docker build to dockerhub automatically
|
|
# on the creation of a new release
|
|
name: Publish to Dockerhub on creation of a new release
|
|
on:
|
|
release:
|
|
types: [published]
|
|
jobs:
|
|
update:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Publish to Dockerhub Registry
|
|
pre: echo ::save-state name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
|
|
uses: elgohr/Publish-Docker-Github-Action@master
|
|
with:
|
|
name: projectdiscovery/nuclei
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
tags: "latest,${{ env.STATE_RELEASE_VERSION }}"
|