-
Notifications
You must be signed in to change notification settings - Fork 12
35 lines (29 loc) · 957 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: release
on:
push:
tags:
- 'openchallenges/v*'
env:
VERSION: ''
jobs:
deploy:
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"