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:
|
2021-09-24 23:08:57 +00:00
|
|
|
- name: Git Checkout
|
2022-03-07 05:04:20 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-09-24 23:08:57 +00:00
|
|
|
|
|
|
|
- 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)"
|
2021-09-24 23:08:57 +00:00
|
|
|
|
|
|
|
- name: Set up QEMU
|
2021-06-15 16:01:56 +00:00
|
|
|
uses: docker/setup-qemu-action@v1
|
2021-09-24 23:08:57 +00:00
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
2021-06-15 16:01:56 +00:00
|
|
|
uses: docker/setup-buildx-action@v1
|
2021-09-24 23:08:57 +00:00
|
|
|
|
|
|
|
- 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 }}
|
2021-09-24 23:08:57 +00:00
|
|
|
|
|
|
|
- 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
|
2021-09-24 23:08:57 +00:00
|
|
|
tags: projectdiscovery/nuclei:latest,projectdiscovery/nuclei:${{ steps.meta.outputs.tag }}
|