diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..9f6c599 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,20 @@ +name: n-good +run-name: building n-gon +on: [push] + +jobs: + Build-Docker-Image: + runs-on: ubuntu-latest + steps: + - name: Pull repo + uses: actions/checkout@v4 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: swaous.asuscomm.com + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Build + run: | + docker build -t swaous.asuscomm.com/n-gon-improved:latest . + docker push swaous.asuscomm.com/n-gon-improved:latest diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7360467 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM busybox:1.35 + +# Create a non-root user to own the files and run our server +RUN mkdir /static +WORKDIR /static + +# Copy the static website +# Use the .dockerignore file to control what ends up inside the image! +COPY . . + +# Run BusyBox httpd +CMD ["busybox", "httpd", "-f", "-v", "-p", "80"] diff --git a/index.html b/index.html index 099c076..1cdd346 100644 --- a/index.html +++ b/index.html @@ -6,13 +6,13 @@ - + - - + + -