Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
ae1735b401
|
|||
| d8400b69df | |||
| 985c955a17 | |||
| f75e329b91 | |||
|
34b8ab3ed4
|
|||
| c13e4ec0ce | |||
| c14ff7c5b9 | |||
| d0e994fcd9 | |||
| c3cff215e3 | |||
| aa24ec3d26 | |||
|
a6ae2fd2b1
|
@@ -0,0 +1,33 @@
|
|||||||
|
name: lingonpaj-site
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
BUILDTOOLS_CONTENT: ${{ secrets.BUILDTOOLS_CONTENT }}
|
||||||
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
- uses: buildtool/setup-buildtools-action@v1
|
||||||
|
- name: Build and push
|
||||||
|
run: unset GITEA_TOKEN && build && push
|
||||||
|
|
||||||
|
deploy-prod:
|
||||||
|
needs: build
|
||||||
|
if: gitea.ref == 'refs/heads/main'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
BUILDTOOLS_CONTENT: ${{ secrets.BUILDTOOLS_CONTENT }}
|
||||||
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||||
|
environment: prod
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
- uses: buildtool/setup-buildtools-action@v1
|
||||||
|
- name: Deploy to production
|
||||||
|
run: deploy prod
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
stages:
|
|
||||||
- build
|
|
||||||
- deploy-prod
|
|
||||||
|
|
||||||
image: buildtool/build-tools:${BUILDTOOLS_VERSION}
|
|
||||||
|
|
||||||
build:
|
|
||||||
stage: build
|
|
||||||
script:
|
|
||||||
- build
|
|
||||||
- push
|
|
||||||
|
|
||||||
deploy-to-prod:
|
|
||||||
stage: deploy-prod
|
|
||||||
when: on_success
|
|
||||||
script:
|
|
||||||
- echo Deploy to PROD.
|
|
||||||
- deploy prod
|
|
||||||
environment:
|
|
||||||
name: prod
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM amd64/nginx:1.29.4@sha256:1ead684dc0a33ef421caa42403272afeae59c8933edcedda6926d964a44d3f01
|
FROM amd64/nginx:1.29.4@sha256:14c54109a4bff01b4163013fc9509e7f097691c8484f5f0c6772d937c0a75a16
|
||||||
MAINTAINER Joakim Olsson <joakim@unbound.se>
|
MAINTAINER Joakim Olsson <joakim@unbound.se>
|
||||||
|
|
||||||
ADD files/*.html files/*.jpg files/*.mp3 /usr/share/nginx/html/
|
ADD files/*.html files/*.jpg files/*.mp3 /usr/share/nginx/html/
|
||||||
|
|||||||
+1
-1
@@ -44,7 +44,7 @@ spec:
|
|||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
image: registry.gitlab.com/unboundsoftware/lingonpaj-site:${COMMIT}
|
image: oci.unbound.se/unboundsoftware/lingonpaj-site:${COMMIT}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
resources:
|
resources:
|
||||||
|
|||||||
Reference in New Issue
Block a user