add dockerfile and gitea workflow
All checks were successful
404 page build / page-build (push) Successful in 55s
All checks were successful
404 page build / page-build (push) Successful in 55s
This commit is contained in:
28
.gitea/workflows/build.yaml
Normal file
28
.gitea/workflows/build.yaml
Normal file
@ -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
|
3
Dockerfile
Normal file
3
Dockerfile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
FROM nginx:latest
|
||||||
|
COPY src /usr/share/nginx/html
|
||||||
|
EXPOSE 80
|
Reference in New Issue
Block a user