Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
6d89f43ca4
|
@@ -10,21 +10,21 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
BUILDTOOLS_CONTENT: ${{ vars.BUILDTOOLS_CONTENT }}
|
BUILDTOOLS_CONTENT: ${{ secrets.BUILDTOOLS_CONTENT }}
|
||||||
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: buildtool/setup-buildtools-action@v1
|
- uses: buildtool/setup-buildtools-action@v1
|
||||||
- name: Check buildtools on path
|
|
||||||
run: which build && which push
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
run: build && push
|
run: unset GITEA_TOKEN && build && push
|
||||||
|
|
||||||
deploy-prod:
|
deploy-prod:
|
||||||
needs: build
|
needs: build
|
||||||
if: gitea.ref == 'refs/heads/master'
|
if: gitea.ref == 'refs/heads/master'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
BUILDTOOLS_CONTENT: ${{ vars.BUILDTOOLS_CONTENT }}
|
BUILDTOOLS_CONTENT: ${{ secrets.BUILDTOOLS_CONTENT }}
|
||||||
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||||
environment: prod
|
environment: prod
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|||||||
+1
-1
@@ -41,7 +41,7 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
memory: "100Mi"
|
memory: "100Mi"
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
image: oci.unbound.se/unboundsoftware/dancefinder/geo-service:${COMMIT}
|
image: oci.unbound.se/dancefinder/geo-service:${COMMIT}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
name: http
|
name: http
|
||||||
|
|||||||
Reference in New Issue
Block a user