Skip to content

Commit

Permalink
Add test-ima-predeployed branch to publish pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytrotkk committed Feb 10, 2025
1 parent 7e25a44 commit f2be329
Showing 1 changed file with 36 additions and 35 deletions.
71 changes: 36 additions & 35 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
- develop
- beta
- stable
- 'v*.*.*'
- "v*.*.*"
- test-ima-predeployed

jobs:
build:
Expand All @@ -17,37 +18,37 @@ jobs:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Build and publish container
run: |
export BRANCH=${GITHUB_REF##*/}
export VERSION=$(cat VERSION)
echo "Branch: $BRANCH"
echo "Base version: $VERSION"
export VERSION=$(bash ./helper-scripts/calculate_version.sh)
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "Version $VERSION"
export RELEASE=true
( test $BRANCH = "stable" && export PRERELEASE=false ) || export PRERELEASE=true
echo "PRERELEASE=$PRERELEASE" >> $GITHUB_ENV
echo "RELEASE=$RELEASE" >> $GITHUB_ENV
export CONTAINER_NAME="admin"
bash ./helper-scripts/build_and_publish.sh
- name: Checkout code
uses: actions/checkout@master
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.VERSION }}
release_name: ${{ env.VERSION }}
draft: false
prerelease: ${{ env.PRERELEASE }}
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Build and publish container
run: |
export BRANCH=${GITHUB_REF##*/}
export VERSION=$(cat VERSION)
echo "Branch: $BRANCH"
echo "Base version: $VERSION"
export VERSION=$(bash ./helper-scripts/calculate_version.sh)
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "Version $VERSION"
export RELEASE=true
( test $BRANCH = "stable" && export PRERELEASE=false ) || export PRERELEASE=true
echo "PRERELEASE=$PRERELEASE" >> $GITHUB_ENV
echo "RELEASE=$RELEASE" >> $GITHUB_ENV
export CONTAINER_NAME="admin"
bash ./helper-scripts/build_and_publish.sh
- name: Checkout code
uses: actions/checkout@master
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.VERSION }}
release_name: ${{ env.VERSION }}
draft: false
prerelease: ${{ env.PRERELEASE }}

0 comments on commit f2be329

Please sign in to comment.