diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..683d5e4 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,28 @@ +name: 404 page build + +on: + push: + branches: + - develop + +jobs: + page-build: + runs-on: ubuntu-22.04 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Login to registry + uses: docker/login-action@v1 + with: + registry: gitea.amundsson.eu + username: namundsson@gmail.com + password: ${{ secrets.REGISTRY_PASSWORD }} + + - name: Build and push Docker image + run: | + docker build -t gitea.amundsson.eu/n1jos/404-page:latest . + docker push gitea.amundsson.eu/n1jos/404-page:latest \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..53faee7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM nginx:latest +COPY src /usr/share/nginx/html +EXPOSE 80 \ No newline at end of file