Skip to content

fix(openchallenges): provide GHCR secrets to the release workflow (#2… #4

fix(openchallenges): provide GHCR secrets to the release workflow (#2…

fix(openchallenges): provide GHCR secrets to the release workflow (#2… #4

Workflow file for this run

name: release
on:
push:
tags:
- 'openchallenges/v*'
env:
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
DOCKER_USERNAME: ${{ github.actor }}
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/v}
echo "VERSION=${VERSION}" >> $GITHUB_ENV
echo "Docker image tag will be: ${VERSION}"
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v4
- 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"