diff --git a/.gitea/workflows/build_image_wafwoof.yml b/.gitea/workflows/build_image_wafwoof.yml index dbeb194..37fd827 100644 --- a/.gitea/workflows/build_image_wafwoof.yml +++ b/.gitea/workflows/build_image_wafwoof.yml @@ -20,18 +20,10 @@ jobs: username: ${{ secrets.REGISTRY_DOCKER_USER }} password: ${{ secrets.REGISTRY_DOCKER_PASS }} - steps: - name: Show Information run: echo "Runner ${{ runner.os }} working on repository ${{ gitea.repository }} and on tag ${{ gitea.ref_name }}" - - name: Git clone private repository - uses: actions/checkout@v4 - with: - repository: staffadmin/wafw00f - # github-server-url: https://github.com - token: ${{ secrets.REPO_PULL_GITEA }} - - name: Login to docker private registry uses: docker/login-action@v3 with: @@ -39,12 +31,14 @@ jobs: username: ${{ secrets.REGISTRY_DOCKER_USER }} password: ${{ secrets.REGISTRY_DOCKER_PASS }} - - name: Build and push image in registry - uses: docker/build-push-action@v5 - with: - context: . - push: true - tags: ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_WAFWOOF }}:latest,${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_WAFWOOF }}:${{ gitea.ref_name }} + - name: git clone repo + run: git clone https://github.com/EnableSecurity/wafw00f + + - name: docker build and push + run: | + docker build -f wafw00f/Dockerfile -t ${{ vars.DOCKER_IMAGE_WAFWOOF }} + docker tag ${{ vars.DOCKER_IMAGE_WAFWOOF }} ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_WAFWOOF }} + docker push ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_WAFWOOF }} - name: Output run: echo "Runner push on ${{ vars.REGISTRY_DOCKER }} image ${{ vars.DOCKER_IMAGE_WAFWOOF }} tag ${{ gitea.ref_name }}" \ No newline at end of file