Skip to content

Curation platform v2 #14

Curation platform v2

Curation platform v2 #14

Workflow file for this run

name: Build/Push docker image
on:
release:
types: [ published ]
jobs:
main:
if: github.repository == 'oncokb/oncokb-curation'
name: Build and Push
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '20.12.2'
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '17'
- name: Install node.js packages
run: npm install
- name: Package application with Jib
env:
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
TAG_NAME: ${{ github.event.release.tag_name }}
REPOSITORY: ${{ github.repository }}
run: |
./mvnw -ntp package -Pprod verify jib:build \
-DskipTests \
-Djib.to.image="${REPOSITORY}:${TAG_NAME:1}" \
-Djib.to.auth.username=$DOCKER_USERNAME \
-Djib.to.auth.password=$DOCKER_PASSWORD