nuclei/.github/workflows/dockerhub-push.yml

40 lines
1.0 KiB
YAML
Raw Normal View History

2021-06-15 16:01:56 +00:00
name: 🌥 Docker Push
2021-06-02 08:37:49 +00:00
on:
2021-09-26 12:02:19 +00:00
workflow_run:
workflows: ["🎉 Release Binary"]
types:
- completed
2021-06-02 08:37:49 +00:00
workflow_dispatch:
2020-06-04 09:24:01 +00:00
jobs:
2021-06-15 16:01:56 +00:00
docker:
2020-06-04 09:24:01 +00:00
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v3
- name: Get Github tag
id: meta
run: |
2021-09-24 23:37:58 +00:00
echo "::set-output name=tag::$(curl --silent "https://api.github.com/repos/projectdiscovery/nuclei/releases/latest" | jq -r .tag_name)"
- name: Set up QEMU
2021-06-15 16:01:56 +00:00
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
2021-06-15 16:01:56 +00:00
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
2021-06-15 16:01:56 +00:00
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
2021-06-15 16:01:56 +00:00
uses: docker/build-push-action@v2
with:
context: .
2021-12-10 16:17:47 +00:00
platforms: linux/amd64,linux/arm64
2021-06-15 16:01:56 +00:00
push: true
tags: projectdiscovery/nuclei:latest,projectdiscovery/nuclei:${{ steps.meta.outputs.tag }}