Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
001642e95b
|
@@ -13,8 +13,17 @@ jobs:
|
|||||||
BUILDTOOLS_CONTENT: ${{ secrets.BUILDTOOLS_CONTENT }}
|
BUILDTOOLS_CONTENT: ${{ secrets.BUILDTOOLS_CONTENT }}
|
||||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v4
|
||||||
- uses: buildtool/setup-buildtools-action@v1
|
- uses: buildtool/setup-buildtools-action@v1
|
||||||
|
- name: Debug KUBECONFIG_CONTENT
|
||||||
|
run: |
|
||||||
|
echo "KUBECONFIG_CONTENT length: ${#KUBECONFIG_CONTENT}"
|
||||||
|
if [ -n "$KUBECONFIG_CONTENT" ]; then
|
||||||
|
echo "KUBECONFIG_CONTENT is set"
|
||||||
|
echo "First 50 chars: ${KUBECONFIG_CONTENT:0:50}"
|
||||||
|
else
|
||||||
|
echo "KUBECONFIG_CONTENT is NOT set"
|
||||||
|
fi
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
run: unset GITEA_TOKEN && build && push
|
run: unset GITEA_TOKEN && build && push
|
||||||
|
|
||||||
@@ -27,7 +36,12 @@ jobs:
|
|||||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||||
environment: prod
|
environment: prod
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v4
|
||||||
- uses: buildtool/setup-buildtools-action@v1
|
- 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
|
- name: Deploy
|
||||||
run: deploy prod
|
run: deploy prod
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
include:
|
||||||
|
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
|
||||||
|
- project: unboundsoftware/ci-templates
|
||||||
|
file: Defaults.gitlab-ci.yml
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- deploy
|
||||||
|
|
||||||
|
image: buildtool/build-tools:${BUILDTOOLS_VERSION}
|
||||||
|
|
||||||
|
build:
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- build
|
||||||
|
- push
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
stage: deploy
|
||||||
|
when: on_success
|
||||||
|
script:
|
||||||
|
- echo Deploying
|
||||||
|
- deploy prod
|
||||||
|
environment:
|
||||||
|
name: prod
|
||||||
|
only:
|
||||||
|
- master
|
||||||
Reference in New Issue
Block a user