Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
049a0270b9
|
|||
| 94227f00ac | |||
| c5f5670453 | |||
|
acfd041884
|
|||
| 9b5d048fa3 | |||
| 87778defbf | |||
|
cfe50f4db3
|
@@ -0,0 +1,39 @@
|
||||
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 }}
|
||||
KUBECONFIG_CONTENT: ${{ secrets.KUBECONFIG_CONTENT }}
|
||||
environment: prod
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: buildtool/setup-buildtools-action@v1
|
||||
- name: Install aws-iam-authenticator
|
||||
run: |
|
||||
curl -Lo aws-iam-authenticator https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/latest/download/aws-iam-authenticator_linux_amd64
|
||||
chmod +x aws-iam-authenticator
|
||||
sudo mv aws-iam-authenticator /usr/local/bin/
|
||||
- name: Deploy
|
||||
run: deploy 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