Files
wanderer/.github/workflows/release_dev.yaml
2026-02-07 14:14:47 +01:00

47 lines
1.3 KiB
YAML

name: Publish dev Release
on:
push:
branches:
- main
jobs:
docker-build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Bump versions
run: |
LAST_TAG=$(git describe --tags --abbrev=0)
BASE_VERSION=${LAST_TAG#v}
FULL_SHA=$(git rev-parse HEAD)
VERSION="${BASE_VERSION}-dev+${FULL_SHA}"
cd web && npm version $VERSION --no-git-tag-version && cd ..
cd docs && npm version $VERSION --no-git-tag-version && cd ..
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker Images
run: |
docker buildx build db/ --no-cache -t ghcr.io/open-wanderer/wanderer-db:dev --platform=linux/amd64,linux/arm64 --push
docker buildx build web/ --no-cache -t ghcr.io/open-wanderer/wanderer-web:dev --platform=linux/amd64,linux/arm64 --push