Try building a first container
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Nikolai Rodionov 2024-10-01 18:20:16 +02:00
parent 6f0767465e
commit 11c0794db8
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD

View File

@ -4,87 +4,25 @@ when:
- push - push
steps: steps:
- image: alpine/helm - name: Build and push a container image
name: Publish the Helm chart image: zot.badhouseplants.net/badhouseplants/badhouseplants-builder:latest
commands:
- helm plugin install https://github.com/chartmuseum/helm-push
- helm package chart -d chart-package
- helm repo add --username allanger --password $GITEA_TOKEN badhouseplants-net https://git.badhouseplants.net/api/packages/badhouseplants/helm
- helm cm-push "./chart-package/$(ls chart-package)" badhouseplants-net
secrets:
- gitea_token
- name: Test a build
image: git.badhouseplants.net/badhouseplants/hugo-container
commands:
- hugo -s ./src
- name: Build and push the docker image
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:latest
privileged: true privileged: true
depends_on:
- Test a build
secrets: secrets:
- gitea_token - registry_token
environment:
BUILDER_COMMIT: 2449b73b13a62ae916c6703778d096e5290157b3
commands: commands:
- rm -rf $DRONE_WORKSPACE/src/assets/
- ./scripts/build-container.pl - ./scripts/build-container.pl
backend_options: backend_options:
kubernetes: kubernetes:
resources: resources:
requests: requests:
memory: 500Mi memory: 200Mi
cpu: 200m cpu: 200m
limits: limits:
memory: 1000Mi memory: 200Mi
cpu: 1000m cpu: 200m
securityContext: securityContext:
privileged: true privileged: true
- name: Sync pictures from lfs to Minio
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:latest
depends_on:
- Test a build
secrets:
- rclone_config_content
environment:
RCLONE_CONFIG: /tmp/rclone.conf
commands:
- echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG
- ./scripts/upload-media.pl
- name: Deploy the application
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:latest
depends_on:
- Build and push the docker image
- Sync pictures from lfs to Minio
secrets:
- gitea_token
- argocd_auth_token
- argo_github_oauth_key
- argo_google_oauth_key
environment:
ARGOCD_SERVER: https://argo.badhouseplants.net:443
commands:
- ./scripts/deploy-app.pl
- name: Cleanup everything
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:latest
depends_on:
- Deploy the application
secrets:
- gitea_token
- argocd_auth_token
- rclone_config_content
environment:
ARGOCD_SERVER: argo.badhouseplants.net:443
RCLONE_CONFIG: /tmp/rclone.conf
commands:
- echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG
- ./scripts/cleanup.pl
- name: Spell-Checker - name: Spell-Checker
failure: ignore failure: ignore
image: node image: node