Compare commits

..

7 commits

Author SHA1 Message Date
5da1a68960 ci: fix image tagging
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build was killed
2024-10-19 12:15:44 +02:00
158bddf60f Merge branch 'master' into develop
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2024-10-19 11:57:46 +02:00
903afefb74 ci: fix misnaming of project 2024-10-19 11:56:33 +02:00
c2fec3515e docs: update dokku line 2024-10-19 11:56:15 +02:00
b22d8bf874 Update Dockerfile
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
continuous-integration/drone Build is passing
2024-10-19 09:04:19 +00:00
1d4206f07b fix: remove empty environment 2024-10-19 10:59:50 +02:00
e67868c44f Update Dockerfile 2024-10-19 08:48:29 +00:00
3 changed files with 11 additions and 45 deletions

View file

@ -6,18 +6,12 @@ name: default
steps:
- name: debug
image: alpine
environment:
commands:
- 'echo "Repository: glenux/service-drone-server"'
- 'echo "Git commit: ${DRONE_COMMIT_SHA:0:8}"'
- name: publish:commit_sha
image: plugins/docker
# pull: never
# volumes:
# - name: cache
# path: /stupid
environment:
DOCKER_REPO: glenux/service-drone-server
settings:
@ -25,46 +19,14 @@ steps:
from_secret: DOCKERHUB_USERNAME
password:
from_secret: DOCKERHUB_PASSWORD
cache_from: "glenux/service-drone-server:latest_${DRONE_BRANCH/\\//-}"
cache_from: "glenux/service-drone-server:${DRONE_BRANCH/\\//-}_latest"
repo: glenux/service-drone-server
tags: "${DRONE_COMMIT_SHA:0:8}"
tags:
- "${DRONE_BRANCH/\\//-}_${DRONE_COMMIT_SHA:0:8}"
- "${DRONE_BRANCH/\\//-}_latest"
- "latest"
purge: false
- name: publish:commit_branch
image: plugins/docker
# volumes:
# - name: cache
# path: /stupid
settings:
username:
from_secret: DOCKERHUB_USERNAME
password:
from_secret: DOCKERHUB_PASSWORD
cache_from: "glenux/service-drone-server:latest_${DRONE_BRANCH/\\//-}"
repo: glenux/service-drone-server
tags: "latest_${DRONE_BRANCH/\\//-}"
purge: false
when:
branch:
- "master"
- "develop"
- "feature/*"
- name: publish:latest
image: plugins/docker
settings:
username:
from_secret: DOCKERHUB_USERNAME
password:
from_secret: DOCKERHUB_PASSWORD
cache_from: "glenux/service-drone-server:latest_${DRONE_BRANCH/\\//-}"
repo: glenux/service-drone-server
tags: latest
purge: false
when:
branch:
- master
# - name: deploy:dokku
# image: alpine
# when:
@ -88,7 +50,7 @@ steps:
# - ssh -o StrictHostKeyChecking=no
# -i ~/.ssh/deploy_key
# "$SSH_USER@$SSH_HOST"
# git:from-image automation
# git:from-image cicd
# "glenux/service-drone-server:${DRONE_COMMIT_SHA:0:8}"
# #

View file

@ -1,6 +1,8 @@
FROM drone/drone:2.22.0
# FROM drone/drone:2.20.0
# FROM drone/drone:2.22.0
FROM drone/drone:2.24.0
COPY entrypoint-wrapper.sh /usr/bin/entrypoint-wrapper
ENTRYPOINT ["/usr/bin/entrypoint-wrapper"]

View file

@ -43,3 +43,5 @@ Deploy
git remote add dokku dokku@dokku.example.com:cicd
git push dokku master
dokku git:from-image cicd "glenux/service-drone-server:$IMAGE_TAG"