diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..b77a2fa --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,44 @@ +name: Docker Image CI + +on: + push: + branches: + - master + paths: + - Dockerfile + - .github/workflows/docker-image.yml + pull_request: + branches: + - master + paths: + - Dockerfile + - .github/workflows/docker-image.yml + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile + push: true + tags: | + ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPONAME }}:8081 + platforms: linux/amd64,linux/arm64 diff --git a/Dockerfile b/Dockerfile index 8d57db4..ef4594d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,4 +27,4 @@ ENV HOME=/root \ RUN_FLUXBOX=yes COPY . /app CMD ["/app/entrypoint.sh"] -EXPOSE 8080 +EXPOSE 8081 diff --git a/conf.d/websockify.conf b/conf.d/websockify.conf index d15418c..bbc7440 100644 --- a/conf.d/websockify.conf +++ b/conf.d/websockify.conf @@ -1,3 +1,3 @@ [program:websockify] -command=websockify --web /usr/share/novnc 8080 localhost:5900 +command=websockify --web /usr/share/novnc 8081 localhost:5900 autorestart=true