2022-06-25 15:43:24 +02:00
|
|
|
repositoryUrl: "https://github.com/apricote/Listory"
|
|
|
|
|
branches:
|
|
|
|
|
- "main"
|
|
|
|
|
- { name: "beta", prerelease: true }
|
|
|
|
|
- { name: "alpha", prerelease: true }
|
2020-05-07 02:34:49 +02:00
|
|
|
plugins:
|
|
|
|
|
- "@semantic-release/commit-analyzer"
|
|
|
|
|
- "@semantic-release/release-notes-generator"
|
|
|
|
|
- "@semantic-release/changelog"
|
|
|
|
|
- - "@semantic-release/npm"
|
|
|
|
|
- npmPublish: false
|
2020-05-07 02:36:59 +02:00
|
|
|
- - "@semantic-release/exec"
|
2020-05-08 02:11:39 +02:00
|
|
|
- prepareCmd: |
|
|
|
|
|
# Build Docker Container
|
2023-04-02 13:46:00 +02:00
|
|
|
# Build now but dont push; this validates that the image builds
|
|
|
|
|
# successfully and we can later re-use the cached build results to
|
|
|
|
|
# push in "publish" stage
|
|
|
|
|
docker buildx build \
|
2020-05-08 02:11:39 +02:00
|
|
|
-t apricote/listory \
|
|
|
|
|
--build-arg VERSION=${nextRelease.version} \
|
|
|
|
|
--build-arg GIT_COMMIT=`git rev-parse HEAD` \
|
2023-04-02 13:46:00 +02:00
|
|
|
--platform=linux/amd64,linux/arm64 \
|
2020-05-08 02:11:39 +02:00
|
|
|
.
|
|
|
|
|
|
|
|
|
|
# Update version in Helm Chart
|
|
|
|
|
CHART_FILE=charts/listory/Chart.yaml
|
|
|
|
|
|
|
|
|
|
sed -i \
|
|
|
|
|
-e "s/version: .*/version: ${nextRelease.version}/g" \
|
|
|
|
|
-e "s/appVersion: .*/appVersion: ${nextRelease.version}/g" \
|
|
|
|
|
$CHART_FILE
|
2020-05-12 01:28:30 +02:00
|
|
|
|
|
|
|
|
# Package Helm Chart
|
|
|
|
|
mkdir .helm-chart
|
|
|
|
|
helm package charts/listory --destination .helm-charts
|
|
|
|
|
|
2023-03-24 20:02:50 +01:00
|
|
|
# Update version in prod docker compose
|
|
|
|
|
sed -i \
|
|
|
|
|
-e "s/apricote\/listory:.*/apricote\/listory:${nextRelease.version}/g" \
|
|
|
|
|
docker-compose.prod.yml
|
|
|
|
|
|
2023-04-02 13:46:00 +02:00
|
|
|
publishCmd: |
|
|
|
|
|
# Build (with cache) & push Docker Images
|
|
|
|
|
docker buildx build \
|
|
|
|
|
-t apricote/listory:${nextRelease.version} \
|
|
|
|
|
-t apricote/listory:latest \
|
|
|
|
|
--build-arg VERSION=${nextRelease.version} \
|
|
|
|
|
--build-arg GIT_COMMIT=`git rev-parse HEAD` \
|
|
|
|
|
--platform=linux/amd64,linux/arm64 \
|
|
|
|
|
--push \
|
|
|
|
|
|
2020-05-08 02:11:39 +02:00
|
|
|
- - "@semantic-release/git"
|
|
|
|
|
- assets:
|
|
|
|
|
- CHANGELOG.md
|
|
|
|
|
- package.json
|
|
|
|
|
- package-lock.json
|
|
|
|
|
- charts/listory/Chart.yaml
|
2023-03-24 20:02:50 +01:00
|
|
|
- docker-compose.prod.yml
|
2020-05-12 01:28:30 +02:00
|
|
|
- - "@semantic-release/github"
|
|
|
|
|
- assets:
|
2020-05-12 02:04:32 +02:00
|
|
|
- path: .helm-charts/listory-*.tgz
|
2020-05-12 01:28:30 +02:00
|
|
|
label: Helm Chart
|