Added version tagging to docker release

dev
sandeep 2021-09-25 04:38:57 +05:30
parent f5fb8aa305
commit b34d9507e3
1 changed files with 15 additions and 11 deletions

View File

@ -9,26 +9,30 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Git Checkout
uses: actions/checkout@v2
-
name: Set up QEMU
- name: Get Github tag
id: meta
run: |
echo "::set-output name=tag::$(git describe --tags --abbrev=0)"
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
-
name: Build and push
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm
push: true
tags: projectdiscovery/nuclei:latest
tags: projectdiscovery/nuclei:latest,projectdiscovery/nuclei:${{ steps.meta.outputs.tag }}