Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
fc31ea981b
|
|||
| eb032b4125 | |||
|
a01dfe03e4
|
|||
| f88745f6e8 | |||
|
a4e09afbfc
|
|||
| bcf04bb8ce | |||
|
049a0270b9
|
|||
| 94227f00ac | |||
| c5f5670453 | |||
|
acfd041884
|
|||
| 9b5d048fa3 | |||
| 87778defbf | |||
|
cfe50f4db3
|
@@ -0,0 +1,33 @@
|
||||
name: dancefetcher
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
|
||||
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/master'
|
||||
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
|
||||
run: deploy prod
|
||||
@@ -1,35 +0,0 @@
|
||||
include:
|
||||
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
|
||||
- project: unboundsoftware/ci-templates
|
||||
file: Defaults.gitlab-ci.yml
|
||||
|
||||
stages:
|
||||
- build
|
||||
- deploy-prod
|
||||
|
||||
image: buildtool/build-tools:${BUILDTOOLS_VERSION}
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- build
|
||||
- curl -Os https://uploader.codecov.io/latest/linux/codecov
|
||||
- chmod +x codecov
|
||||
- ./codecov -t ${CODECOV_TOKEN} -R $CI_PROJECT_DIR -C $CI_COMMIT_SHA -r $CI_PROJECT_PATH
|
||||
- push
|
||||
artifacts:
|
||||
paths:
|
||||
- release/
|
||||
- coverage.html
|
||||
- k8s
|
||||
|
||||
deploy-prod:
|
||||
stage: deploy-prod
|
||||
before_script:
|
||||
- echo Deploy to prod
|
||||
script:
|
||||
- deploy prod
|
||||
only:
|
||||
- master
|
||||
environment:
|
||||
name: prod
|
||||
+1
-1
@@ -13,7 +13,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: dancefetcher
|
||||
image: registry.gitlab.com/unboundsoftware/dancefinder/dancefetcher:${COMMIT}
|
||||
image: oci.unbound.se/dancefinder/dancefetcher:${COMMIT}
|
||||
imagePullPolicy: Always
|
||||
resources:
|
||||
limits:
|
||||
|
||||
Reference in New Issue
Block a user