Added version tagging to docker release
@@ -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
\ No newline at end of file
+ tags: projectdiscovery/nuclei:latest,projectdiscovery/nuclei:${{ steps.meta.outputs.tag }}
\ No newline at end of file
