bump version to 2.8.0 #266
Workflow file for this run
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
name: Build Oracle Data API | |
# This workflow will automatically build the oracle-data-api project on the creation of a tag in Github. | |
# The build is then pushed to Openshift, tagged with the version of the github tag, ie. oracle-data-api:1.49.2 | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set Release Version | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
# - name: Env | |
# run : | | |
# env | |
- name: Login to OpenShift | |
uses: docker/login-action@v1 | |
with: | |
registry: ${{secrets.OPENSHIFT_EXTERNAL_REPOSITORY}} | |
username: ${{secrets.OPENSHIFT_SA_USERNAME}} | |
password: ${{secrets.OPENSHIFT_SA_PASSWORD}} | |
- name: Build and push | |
env: | |
COMPOSE_DOCKER_CLI_BUILD: 1 | |
DOCKER_BUILDKIT: 1 | |
CONTEXT: ./src/backend/oracle-data-api | |
IMAGE: ${{secrets.OPENSHIFT_EXTERNAL_REPOSITORY}}/${{secrets.OPENSHIFT_TOOLS_NAMESPACE}}/oracle-data-api:${{ env.RELEASE_VERSION }} | |
run: | | |
docker build --tag ${IMAGE} -f ${CONTEXT}/Dockerfile ${CONTEXT} | |
docker push ${IMAGE} |