diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d4b844c..1dc45fc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -81,6 +81,12 @@ jobs: ${{ matrix.images.Dockerfile }} --build-arg DOCKER_IMAGE=${{ matrix.images.image }}:${{ matrix.images.tag }} \ --build-arg BUILD_DATE=$(date -u "+%Y-%m-%dT%H:%M:%SZ") docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }} + - name: run + run: | + docker run -p 3632:3632 -p 3633:3633 -d --name localdistcc bensuperpc/distcc:${{ matrix.images.image }}_${{ matrix.images.tag }} + - name: test port + run: | + sleep 10 && nc -zv 127.0.0.1 3632 && nc -zv 127.0.0.1 3633 - name: push run: | docker push bensuperpc/distcc --all-tags \ No newline at end of file diff --git a/run.sh b/run.sh index 2bd7cdc..04620a7 100755 --- a/run.sh +++ b/run.sh @@ -5,7 +5,7 @@ docker run \ -p 3633:3633 \ -d \ --name localdistcc \ - bensuperpc/distcc + bensuperpc/distcc:fedora_34 #--allow #docker exec -it localdistcc htop #--cpus="1.5" \ No newline at end of file