14 Commits
Author SHA1 Message Date
khwezi 56f967c6e4 Merge pull request 'Fixed image and tag naming' (#11) from migration into master
Reviewed-on: #11
2026-05-10 09:09:01 +02:00
khwezi bb42713fb2 Fixed image and tag naming
continuous-integration/drone/pr Build is passing
2026-05-10 09:08:27 +02:00
khwezi 58312d489b Merge pull request 'migration' (#10) from migration into master
Reviewed-on: #10
2026-05-10 09:04:22 +02:00
khwezi 3beebe16d3 Removed explicit image specification
continuous-integration/drone/pr Build was killed
2026-05-10 09:03:32 +02:00
khwezi 6757eb342e Added release tagging to deployment, increased replica count to 2 2026-05-10 09:02:57 +02:00
khwezi 5ace2129e1 Merge pull request 'migration' (#9) from migration into master
Reviewed-on: #9
2026-05-10 08:26:43 +02:00
khwezi 2bf2d79739 Merge pull request 'Migrated aspire key' (#8) from migration into master
Reviewed-on: #8
2026-05-09 18:01:08 +02:00
khwezi 664bbd858b Merge pull request 'Removed webhook setting' (#7) from migration into master
Reviewed-on: #7
2026-05-09 17:50:30 +02:00
khwezi c36ff28a84 Merge pull request 'Removed user commands from dockerfile' (#6) from migration into master
Reviewed-on: #6
2026-05-09 17:30:16 +02:00
khwezi 0c24613dd3 Merge pull request 'Fixed dockerfile' (#5) from migration into master
Reviewed-on: #5
2026-05-09 17:24:15 +02:00
khwezi 8bcd0f60c3 Merge pull request 'Fixed restore commands' (#4) from migration into master
Reviewed-on: #4
2026-05-09 17:20:20 +02:00
khwezi 186c4b1e85 Merge pull request 'Refactored pipeline to use the correct solution name' (#3) from migration into master
Reviewed-on: #3
2026-05-09 17:18:46 +02:00
khwezi 98f46b5e13 Merge pull request 'Light refactor' (#2) from migration into master
Reviewed-on: #2
2026-05-09 17:17:25 +02:00
khwezi 9d9cb3761a Merge pull request 'Refactored deployment files' (#1) from migration into master
Reviewed-on: #1
2026-05-09 17:14:25 +02:00
2 changed files with 21 additions and 6 deletions
+20 -5
View File
@@ -31,20 +31,37 @@ steps:
registry: nexus.khongisa.co.za registry: nexus.khongisa.co.za
repo: nexus.khongisa.co.za/litecharms-shop repo: nexus.khongisa.co.za/litecharms-shop
tags: [ latest, "1.${DRONE_BUILD_NUMBER}" ] tags: [ latest, "1.${DRONE_BUILD_NUMBER}" ]
custom_labels:
- org.opencontainers.image.source=https://gitea.khongisa.co.za/litecharms/litecharms-shop
- org.opencontainers.image.version=1.${DRONE_BUILD_NUMBER}
- org.opencontainers.image.revision=${DRONE_COMMIT_SHA}
username: { from_secret: docker_username } username: { from_secret: docker_username }
password: { from_secret: docker_password } password: { from_secret: docker_password }
- name: gitea-tag - name: gitea-tag-release
image: alpine/git image: alpine/git
environment: environment:
GITEA_TOKEN: { from_secret: git_token }
GITEA_USER: { from_secret: git_username } GITEA_USER: { from_secret: git_username }
GITEA_PASS: { from_secret: git_password } GITEA_PASS: { from_secret: git_password }
commands: commands:
- git config --global user.email "drone@litecharms.co.za" - echo "169.255.58.144 gitea.khongisa.co.za" >> /etc/hosts
- git config --global user.name "Drone CI" - apk add --no-cache curl
- git remote set-url origin https://$${GITEA_USER}:$${GITEA_PASS}@gitea.khongisa.co.za/litecharms/litecharmsshop.git - git remote set-url origin https://$${GITEA_USER}:$${GITEA_PASS}@gitea.khongisa.co.za/litecharms/litecharmsshop.git
- git tag 1.${DRONE_BUILD_NUMBER} - git tag 1.${DRONE_BUILD_NUMBER}
- git push origin 1.${DRONE_BUILD_NUMBER} - git push origin 1.${DRONE_BUILD_NUMBER}
- |
curl -X POST "https://gitea.khongisa.co.za/api/v1/repos/litecharms/litecharmsshop/releases" \
-H "Authorization: token $${GITEA_TOKEN}" \
-H "Content-Type: application/json" \
-d "{
\"tag_name\": \"1.${DRONE_BUILD_NUMBER}\",
\"target_commitish\": \"${DRONE_COMMIT_SHA}\",
\"name\": \"Release 1.${DRONE_BUILD_NUMBER}\",
\"body\": \"### Artifacts\n* **Docker Image:** nexus.khongisa.co.za/litecharms-shop:1.${DRONE_BUILD_NUMBER}\n* **NuGet:** [View on Nexus](https://nexus.khongisa.co.za/repository/nuget-group/)\",
\"draft\": false,
\"prerelease\": false
}"
depends_on: depends_on:
- build - build
@@ -66,7 +83,6 @@ steps:
- mkdir -p $HOME/.kube - mkdir -p $HOME/.kube
- echo "$KUBE_CONFIG" > $HOME/.kube/config - echo "$KUBE_CONFIG" > $HOME/.kube/config
- kubectl apply -f litecharms-shop-uat.yml - kubectl apply -f litecharms-shop-uat.yml
- kubectl rollout restart deployment/litecharms-shop-uat -n litecharms-shop-uat
depends_on: depends_on:
- package - package
@@ -88,7 +104,6 @@ steps:
- mkdir -p $HOME/.kube - mkdir -p $HOME/.kube
- echo "$KUBE_CONFIG" > $HOME/.kube/config - echo "$KUBE_CONFIG" > $HOME/.kube/config
- kubectl apply -f litecharms-shop.yml - kubectl apply -f litecharms-shop.yml
- kubectl rollout restart shop/deployment/litecharms-shop -n litecharms-shop
depends_on: depends_on:
- uat - uat
+1 -1
View File
@@ -44,7 +44,7 @@ metadata:
name: litecharms-shop name: litecharms-shop
namespace: litecharms-shop-uat namespace: litecharms-shop-uat
spec: spec:
replicas: 1 replicas: 2
selector: selector:
matchLabels: matchLabels:
app: shop app: shop