4 Commits

Author SHA1 Message Date
d63cd998c6 Fix tag manifest creation
Some checks failed
ci/woodpecker/tag/tag unknown status
ci/woodpecker/tag/build/2 Pipeline failed
ci/woodpecker/tag/build/1 Pipeline failed
2025-01-14 03:47:50 +04:00
35a02be21c Add semver tagging using docker-dind 2025-01-14 03:45:07 +04:00
ae2439998d Update README 2025-01-14 03:07:37 +04:00
ce96e5592a Use Docker buildx to build images 2025-01-14 03:05:02 +04:00
3 changed files with 36 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ steps:
test-build: test-build:
image: docker:27-dind image: docker:27-dind
commands: commands:
- docker build -t source.hodakov.me/hdkv/phpbb:${CI_COMMIT_SHA:0:10}-${platform##linux/} . - docker buildx build -t source.hodakov.me/hdkv/phpbb:${CI_COMMIT_SHA:0:10}-${platform##linux/} .
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
when: when:
@@ -27,7 +27,7 @@ steps:
from_secret: registry_token from_secret: registry_token
commands: commands:
- docker login -u ${CI_REPO_OWNER} -p $${CI_USER_PASSWORD} source.hodakov.me - docker login -u ${CI_REPO_OWNER} -p $${CI_USER_PASSWORD} source.hodakov.me
- docker build -t source.hodakov.me/hdkv/phpbb:${CI_COMMIT_SHA:0:10}-${platform##linux/} . - docker buildx build -t source.hodakov.me/hdkv/phpbb:${CI_COMMIT_SHA:0:10}-${platform##linux/} .
- docker push source.hodakov.me/hdkv/phpbb:${CI_COMMIT_SHA:0:10}-${platform##linux/} - docker push source.hodakov.me/hdkv/phpbb:${CI_COMMIT_SHA:0:10}-${platform##linux/}
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock

View File

@@ -6,7 +6,7 @@ depends_on:
- build - build
steps: steps:
tag: tag latest:
image: docker:27-dind image: docker:27-dind
environment: environment:
CI_USER_PASSWORD: CI_USER_PASSWORD:
@@ -19,3 +19,28 @@ steps:
- docker manifest push source.hodakov.me/hdkv/phpbb:latest - docker manifest push source.hodakov.me/hdkv/phpbb:latest
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
when:
event: push
tag semver:
image: docker:27-dind
environment:
CI_USER_PASSWORD:
from_secret: registry_token
commands:
- set -eu
- docker login -u ${CI_REPO_OWNER} -p $${CI_USER_PASSWORD} source.hodakov.me
- source ./scripts/semver.sh
- echo "Creating manifest for $${DOCKER_EXACT_TAG}, $${DOCKER_MAJOR_TAG} and $${DOCKER_MINOR_TAG}"
- docker pull source.hodakov.me/hdkv/phpbb:${CI_COMMIT_SHA:0:10}-amd64
- docker pull source.hodakov.me/hdkv/phpbb:${CI_COMMIT_SHA:0:10}-arm64
- docker manifest create source.hodakov.me/hdkv/phpbb:$${DOCKER_EXACT_TAG} source.hodakov.me/hdkv/phpbb:${CI_COMMIT_SHA:0:10}-amd64 source.hodakov.me/hdkv/phpbb:${CI_COMMIT_SHA:0:10}-arm64
- docker manifest create source.hodakov.me/hdkv/phpbb:$${DOCKER_MINOR_TAG} source.hodakov.me/hdkv/phpbb:${CI_COMMIT_SHA:0:10}-amd64 source.hodakov.me/hdkv/phpbb:${CI_COMMIT_SHA:0:10}-arm64
- docker manifest create source.hodakov.me/hdkv/phpbb:$${DOCKER_MAJOR_TAG} source.hodakov.me/hdkv/phpbb:${CI_COMMIT_SHA:0:10}-amd64 source.hodakov.me/hdkv/phpbb:${CI_COMMIT_SHA:0:10}-arm64
- docker manifest push source.hodakov.me/hdkv/phpbb:$${DOCKER_EXACT_TAG}
- docker manifest push source.hodakov.me/hdkv/phpbb:$${DOCKER_MINOR_TAG}
- docker manifest push source.hodakov.me/hdkv/phpbb:$${DOCKER_MAJOR_TAG}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
event: tag

View File

@@ -175,8 +175,11 @@ If set to `true`, enables phpBB debug mode.
## Volumes ## Volumes
No default volumes are predefined. You can mount everything you want There are predefined volumes in the image:
inside `/phpbb/<something>`. For example, given that [ks.fhs.sh](https://ks.fhs.sh)
was migrating into Docker from bare metal instance back in 2023, I - /phpbb/sqlite
mounted the directories `files`, `store`, `ext`, `images` and - /phpbb/www/files
`themes`, which proved working for more than a year at this point. - /phpbb/www/store
- /phpbb/www/images/avatars/upload
This list of volumes should be good enough for a forum that starts from scratch.