Compare commits
2 commits
955f8d1a91
...
99128a5fd9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
99128a5fd9 | ||
|
|
0f3bf8527f |
2 changed files with 7 additions and 6 deletions
|
|
@ -56,8 +56,9 @@ jobs:
|
||||||
working-directory: ${{ env.DEPLOY_DIR }}
|
working-directory: ${{ env.DEPLOY_DIR }}
|
||||||
run: |
|
run: |
|
||||||
docker compose build --pull
|
docker compose build --pull
|
||||||
docker tag "server-up:${VERSION}" server-up:latest
|
# docker compose bouwt als server-up:latest; voeg versie- en channel-tags toe
|
||||||
docker tag "server-up:${VERSION}" "server-up:${CHANNEL}"
|
docker tag server-up:latest "server-up:${VERSION}"
|
||||||
|
docker tag server-up:latest "server-up:${CHANNEL}"
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
working-directory: ${{ env.DEPLOY_DIR }}
|
working-directory: ${{ env.DEPLOY_DIR }}
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ jobs:
|
||||||
- name: Sync code naar deploy-directory
|
- name: Sync code naar deploy-directory
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
rsync -a --delete \
|
rsync -a --no-group --delete \
|
||||||
--exclude='.git/' \
|
--exclude='.git/' \
|
||||||
--exclude='.forgejo/' \
|
--exclude='.forgejo/' \
|
||||||
./ "$DEPLOY_DIR/"
|
./ "$DEPLOY_DIR/"
|
||||||
|
|
@ -56,9 +56,9 @@ jobs:
|
||||||
working-directory: ${{ env.DEPLOY_DIR }}
|
working-directory: ${{ env.DEPLOY_DIR }}
|
||||||
run: |
|
run: |
|
||||||
docker compose build --pull
|
docker compose build --pull
|
||||||
# Extra tags zodat 'latest' altijd op de laatste deploy wijst
|
# docker compose bouwt als server-up:latest; voeg versie- en channel-tags toe
|
||||||
docker tag "server-up:${VERSION}" server-up:latest
|
docker tag server-up:latest "server-up:${VERSION}"
|
||||||
docker tag "server-up:${VERSION}" "server-up:${CHANNEL}"
|
docker tag server-up:latest "server-up:${CHANNEL}"
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
working-directory: ${{ env.DEPLOY_DIR }}
|
working-directory: ${{ env.DEPLOY_DIR }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue