Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
2cf7206c1e
|
@@ -0,0 +1,35 @@
|
|||||||
|
name: geo-service
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
pull_request:
|
||||||
|
branches: [master]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
BUILDTOOLS_CONTENT: ${{ vars.BUILDTOOLS_CONTENT }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: buildtool/setup-buildtools-action@v1
|
||||||
|
with:
|
||||||
|
debug-log: true
|
||||||
|
- name: Build and push
|
||||||
|
run: build && push
|
||||||
|
|
||||||
|
deploy-prod:
|
||||||
|
needs: build
|
||||||
|
if: gitea.ref == 'refs/heads/master'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
BUILDTOOLS_CONTENT: ${{ vars.BUILDTOOLS_CONTENT }}
|
||||||
|
environment: prod
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: buildtool/setup-buildtools-action@v1
|
||||||
|
with:
|
||||||
|
debug-log: true
|
||||||
|
- name: Deploy
|
||||||
|
run: deploy prod
|
||||||
+1
-1
@@ -41,7 +41,7 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
memory: "100Mi"
|
memory: "100Mi"
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
image: registry.gitlab.com/unboundsoftware/dancefinder/geo-service:${COMMIT}
|
image: oci.unbound.se/unboundsoftware/dancefinder/geo-service:${COMMIT}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
name: http
|
name: http
|
||||||
|
|||||||
Reference in New Issue
Block a user