Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
28d7480ad5
|
|||
| 9a5a8fe98a | |||
| fd8f3c4ce2 | |||
| df2b69958c | |||
| 65e00c4548 | |||
|
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.5@sha256:e5e99d386e625a3ae9492f8496903a42bac0abc0b9103852f180679aef9bf8a2
|
||||
MAINTAINER Joakim Olsson <joakim@unbound.se>
|
||||
|
||||
ADD files/*.html files/*.jpg files/*.mp3 /usr/share/nginx/html/
|
||||
|
||||
+1
-2
@@ -44,7 +44,7 @@ spec:
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 5
|
||||
imagePullPolicy: Always
|
||||
image: registry.gitlab.com/unboundsoftware/lingonpaj-site:${COMMIT}
|
||||
image: oci.unbound.se/unboundsoftware/lingonpaj-site:${COMMIT}
|
||||
ports:
|
||||
- containerPort: 80
|
||||
resources:
|
||||
@@ -52,7 +52,6 @@ spec:
|
||||
cpu: 5m
|
||||
memory: 5Mi
|
||||
limits:
|
||||
cpu: 300m
|
||||
memory: 300Mi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user