[test build push docker image]

This commit is contained in:
2024-11-23 18:01:08 +01:00
parent 75bf25d041
commit 61976fa2af
3 changed files with 5 additions and 11 deletions

View File

@@ -13,7 +13,7 @@ jobs:
# container: debian:bullseye
# runs-on: ubuntu-latest
# container: node:16-bullseye
runs-on: docker
runs-on: debian-runner
container:
image: ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_RUNNER }}:latest
credentials:
@@ -24,15 +24,9 @@ jobs:
- name: Show Information
run: echo "Runner ${{ runner.os }} working on repository ${{ gitea.repository }} and on tag ${{ gitea.ref_name }}"
- name: Login to docker private registry
uses: docker/login-action@v3
with:
registry: ${{ vars.REGISTRY_DOCKER }}
username: ${{ secrets.REGISTRY_DOCKER_USER }}
password: ${{ secrets.REGISTRY_DOCKER_PASS }}
- name: clone & build & push
run: |
echo "${{ secrets.REGISTRY_DOCKER_PASS }}" | docker login -u ${{ secrets.REGISTRY_DOCKER_USER }} --password-stdin ${{ vars.REGISTRY_DOCKER }}
git clone https://github.com/EnableSecurity/wafw00f
cd wafw00f
docker buildx b . -t ${{ vars.DOCKER_IMAGE_WAFWOOF }}