build: Use the builder image everywhere
This commit is contained in:
parent
71b9ab544b
commit
add04f888b
15
.drone.yml
15
.drone.yml
@ -75,7 +75,7 @@ steps:
|
|||||||
- ./scripts/upload-media.pl
|
- ./scripts/upload-media.pl
|
||||||
|
|
||||||
- name: Deploy a preview ApplicationSet
|
- name: Deploy a preview ApplicationSet
|
||||||
image: alpine/k8s:1.24.10
|
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:80ffd53372652576fa3c36a56b351b448a025c6a
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
exclude:
|
exclude:
|
||||||
@ -89,7 +89,6 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- mkdir $HOME/.kube
|
- mkdir $HOME/.kube
|
||||||
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
|
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
|
||||||
- apk update --no-cache && apk add yq gettext openssl
|
|
||||||
- export ARGO_APP_CHART_VERSION=`cat chart/Chart.yaml | yq '.version'`
|
- export ARGO_APP_CHART_VERSION=`cat chart/Chart.yaml | yq '.version'`
|
||||||
- export ARGO_APP_BRANCH=$DRONE_BRANCH
|
- export ARGO_APP_BRANCH=$DRONE_BRANCH
|
||||||
- export ARGO_APP_HOSTNAME="${DRONE_BRANCH}-dev.badhouseplants.net"
|
- export ARGO_APP_HOSTNAME="${DRONE_BRANCH}-dev.badhouseplants.net"
|
||||||
@ -106,7 +105,7 @@ steps:
|
|||||||
- kubectl apply -f /tmp/appset.yaml
|
- kubectl apply -f /tmp/appset.yaml
|
||||||
|
|
||||||
- name: Deploy a main ApplicationSet
|
- name: Deploy a main ApplicationSet
|
||||||
image: alpine/k8s:1.24.10
|
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:80ffd53372652576fa3c36a56b351b448a025c6a
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
@ -123,7 +122,6 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- mkdir $HOME/.kube
|
- mkdir $HOME/.kube
|
||||||
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
|
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
|
||||||
- apk update --no-cache && apk add yq gettext
|
|
||||||
- export ARGO_APP_CHART_VERSION=`cat chart/Chart.yaml | yq '.version'`
|
- export ARGO_APP_CHART_VERSION=`cat chart/Chart.yaml | yq '.version'`
|
||||||
- export ARGO_APP_BRANCH=$DRONE_BRANCH
|
- export ARGO_APP_BRANCH=$DRONE_BRANCH
|
||||||
- export ARGO_APP_IMAGE_TAG=$DRONE_COMMIT_SHA
|
- export ARGO_APP_IMAGE_TAG=$DRONE_COMMIT_SHA
|
||||||
@ -140,7 +138,7 @@ steps:
|
|||||||
- kubectl apply -f /tmp/appset.yaml
|
- kubectl apply -f /tmp/appset.yaml
|
||||||
|
|
||||||
- name: Sync application
|
- name: Sync application
|
||||||
image: argoproj/argocd
|
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:80ffd53372652576fa3c36a56b351b448a025c6a
|
||||||
depends_on:
|
depends_on:
|
||||||
- Deploy a main ApplicationSet
|
- Deploy a main ApplicationSet
|
||||||
- Deploy a preview ApplicationSet
|
- Deploy a preview ApplicationSet
|
||||||
@ -154,7 +152,7 @@ steps:
|
|||||||
- argocd app wait -l app=badhouseplants -l branch=$DRONE_BRANCH
|
- argocd app wait -l app=badhouseplants -l branch=$DRONE_BRANCH
|
||||||
|
|
||||||
- name: Cleanup everything
|
- name: Cleanup everything
|
||||||
image: rclone/rclone:latest
|
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:80ffd53372652576fa3c36a56b351b448a025c6a
|
||||||
depends_on:
|
depends_on:
|
||||||
- Sync application
|
- Sync application
|
||||||
environment:
|
environment:
|
||||||
@ -169,11 +167,6 @@ steps:
|
|||||||
from_secret: ARGOCD_AUTH_TOKEN
|
from_secret: ARGOCD_AUTH_TOKEN
|
||||||
commands:
|
commands:
|
||||||
- echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG
|
- echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG
|
||||||
- apk update
|
|
||||||
- apk add curl jq perl git yq
|
|
||||||
- curl -sSL -o argocd-linux-amd64 https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64
|
|
||||||
- install -m 555 argocd-linux-amd64 /usr/local/bin/argocd
|
|
||||||
- rm argocd-linux-amd64
|
|
||||||
- ./scripts/cleanup.pl
|
- ./scripts/cleanup.pl
|
||||||
|
|
||||||
---
|
---
|
||||||
|
Reference in New Issue
Block a user