-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sage-monorepo): tag the images of a product with semver (ARCH-30…
…4) (#2871)
- Loading branch information
1 parent
0ff75a9
commit d1854b3
Showing
4 changed files
with
209 additions
and
197 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'openchallenges/v*' | ||
|
||
env: | ||
VERSION: '' | ||
|
||
jobs: | ||
deploy: | ||
if: github.ref == 'refs/heads/main' | ||
runs-on: ubuntu-22.04-4core-16GBRAM-150GBSSD | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Extract version from Git tag | ||
id: extract_version | ||
run: | | ||
# Get the tag name and remove 'openchallenges/' prefix | ||
VERSION=${GITHUB_REF#refs/tags/openchallenges/} | ||
echo "VERSION=${VERSION}" >> $GITHUB_ENV | ||
echo "Docker image tag will be: ${VERSION}" | ||
- name: Set up the dev container | ||
uses: ./.github/actions/setup-dev-container | ||
|
||
- name: Build the images of all the OC projects | ||
run: | | ||
devcontainer exec --workspace-folder ../sage-monorepo bash -c ". ./dev-env.sh \ | ||
&& export VERSION=${{ env.VERSION }} \ | ||
&& nx build-image openchallenges-apex --configuration=ci" |
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.