-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(lapis2): use Release Please to generate releases
resolves #678
- Loading branch information
1 parent
91ecfbd
commit c05f7e0
Showing
9 changed files
with
1,867 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Release LAPIS 2 | ||
|
||
on: | ||
workflow_run: | ||
workflows: [LAPIS v2] | ||
types: [completed] | ||
branches: [main] | ||
|
||
env: | ||
LAPIS_DOCKER_IMAGE_NAME: ghcr.io/genspectrum/lapis-v2 | ||
DOCS_DOCKER_IMAGE_NAME: ghcr.io/genspectrum/lapis-v2-docs | ||
|
||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
packages: write | ||
checks: read | ||
if: ${{ github.event.workflow_run.conclusion == 'success' && github.repository == 'GenSpectrum/LAPIS' }} | ||
steps: | ||
- uses: google-github-actions/release-please-action@v4 | ||
id: release | ||
with: | ||
path: . | ||
config-file: release-please-config.json | ||
manifest-file: .release-please-manifest.json | ||
include-component-in-tag: true | ||
target-branch: main | ||
|
||
- uses: actions/checkout@v4 | ||
if: ${{ steps.release.outputs.release_created }} | ||
|
||
- name: Set up Docker Buildx | ||
if: ${{ steps.release.outputs.release_created }} | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to GitHub Container Registry | ||
if: ${{ steps.release.outputs.release_created }} | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Wait for Lapis 2 Docs Docker Image | ||
if: ${{ steps.release.outputs.release_created }} | ||
uses: lewagon/wait-on-check-action@v1.3.4 | ||
with: | ||
ref: ${{ github.sha }} | ||
check-name: Build Docs Docker Image And Run E2E Tests | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Tag Already Built Images With Release Tags | ||
if: ${{ steps.release.outputs.release_created }} | ||
run: | | ||
MAJOR=${{ steps.release.outputs.major }} | ||
MINOR=${{ steps.release.outputs.minor }} | ||
PATCH=${{ steps.release.outputs.patch }} | ||
TAGS=("$MAJOR.$MINOR" "$MAJOR.$MINOR.$PATCH") | ||
# TODO (#777) include $MAJOR only for releases >= 1.0 | ||
# TAGS=("$MAJOR" "$MAJOR.$MINOR" "$MAJOR.$MINOR.$PATCH") - don't include major-only for pre-1.0 | ||
IMAGES=("${{ env.LAPIS_DOCKER_IMAGE_NAME }}" "${{ env.DOCS_DOCKER_IMAGE_NAME }}") | ||
for IMAGE in "${IMAGES[@]}"; do | ||
for TAG in "${TAGS[@]}"; do | ||
docker buildx imagetools create --tag $IMAGE:$TAG $IMAGE:latest | ||
done | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"lapis2": "0.0.1", | ||
"lapis2-docs": "0.0.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Lightweight API for Sequences (LAPIS) | ||
|
||
The documentaion is available at https://lapis-docs.readthedocs.io/. | ||
We are currently developing LAPIS 2. | ||
Refer to the [README](lapis2/README.md) in the `lapis2` directory for more information. | ||
|
||
The documentation of the old version is available at https://lapis-docs.readthedocs.io/. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.