updates cicd
This commit is contained in:
12
.github/workflows/release.yaml
vendored
12
.github/workflows/release.yaml
vendored
@@ -77,27 +77,27 @@ jobs:
|
|||||||
VERSION: ${{ needs.versioning.outputs.version }}
|
VERSION: ${{ needs.versioning.outputs.version }}
|
||||||
run: |
|
run: |
|
||||||
# Build search image
|
# Build search image
|
||||||
docker buildx build search/ --no-cache -t flomp/wanderer-search:v$VERSION -t flomp/wanderer-search:latest --platform=linux/amd64,linux/arm64 --push
|
docker buildx build search/ --no-cache -t flomp/wanderer-search:$VERSION -t flomp/wanderer-search:latest --platform=linux/amd64,linux/arm64 --push
|
||||||
|
|
||||||
# Build db image
|
# Build db image
|
||||||
cd db
|
cd db
|
||||||
env GOOS=linux GOARCH=arm64 go build -o pocketbase_arm64
|
env GOOS=linux GOARCH=arm64 go build -o pocketbase_arm64
|
||||||
env GOOS=linux GOARCH=amd64 go build -o pocketbase_amd64
|
env GOOS=linux GOARCH=amd64 go build -o pocketbase_amd64
|
||||||
cd ..
|
cd ..
|
||||||
docker buildx build db/ --no-cache -t flomp/wanderer-db:v$VERSION -t flomp/wanderer-db:latest --platform=linux/amd64,linux/arm64 --push
|
docker buildx build db/ --no-cache -t flomp/wanderer-db:$VERSION -t flomp/wanderer-db:latest --platform=linux/amd64,linux/arm64 --push
|
||||||
|
|
||||||
# Build web image
|
# Build web image
|
||||||
export PUBLIC_VALHALLA_URL=https://valhalla1.openstreetmap.de
|
export PUBLIC_VALHALLA_URL=https://valhalla1.openstreetmap.de
|
||||||
cd web
|
cd web
|
||||||
npm ci && npm run build
|
npm ci && npm run build
|
||||||
cd ..
|
cd ..
|
||||||
docker buildx build web/ --no-cache -t flomp/wanderer-web:v$VERSION -t flomp/wanderer-web:latest --platform=linux/amd64,linux/arm64 --push
|
docker buildx build web/ --no-cache -t flomp/wanderer-web:$VERSION -t flomp/wanderer-web:latest --platform=linux/amd64,linux/arm64 --push
|
||||||
|
|
||||||
# Build docs image
|
# Build docs image
|
||||||
cd docs
|
cd docs
|
||||||
npm ci && npm run build
|
npm ci && npm run build
|
||||||
cd ..
|
cd ..
|
||||||
docker buildx build docs/ --no-cache -t flomp/wanderer-docs:v$VERSION -t flomp/wanderer-docs:latest --platform=linux/amd64,linux/arm64 --push
|
docker buildx build docs/ --no-cache -t flomp/wanderer-docs:$VERSION -t flomp/wanderer-docs:latest --platform=linux/amd64,linux/arm64 --push
|
||||||
|
|
||||||
# Job 3: Publish the Release
|
# Job 3: Publish the Release
|
||||||
release:
|
release:
|
||||||
@@ -122,7 +122,9 @@ jobs:
|
|||||||
}
|
}
|
||||||
in_section { print }
|
in_section { print }
|
||||||
' CHANGELOG.md)
|
' CHANGELOG.md)
|
||||||
echo "changelog=$CHANGELOG" >> $GITHUB_OUTPUT
|
echo 'changelog<<EOF' >> $GITHUB_OUTPUT
|
||||||
|
echo $CHANGELOG >> $GITHUB_OUTPUT
|
||||||
|
echo 'EOF' >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# 3. Create GitHub Release
|
# 3. Create GitHub Release
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
|
|||||||
Reference in New Issue
Block a user