Skip to content

fix: parameter UploadValidation #220

fix: parameter UploadValidation

fix: parameter UploadValidation #220

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: create and push an image upload-client
run: |
cd upload-client
chmod +x ./gradlew
if [ "${GITHUB_REF##*/}" == "master" ]; then
VERSION="3.1.${GITHUB_RUN_NUMBER}"
else
BRANCH_TO_DOCKER=$(echo ${GITHUB_REF##*/} | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9._-]//g')
VERSION="$BRANCH_TO_DOCKER-${GITHUB_RUN_NUMBER}"
fi
MAJOR=$(echo "${VERSION}" | tr '.' "\n" | sed -n 1p)
MINOR=$(echo "${VERSION}" | tr '.' "\n" | sed -n 2p)
gradle jib --stacktrace \
-Djib.to.image=quay.io/sdase/defectdojo-client:${MAJOR}.${MINOR} \
-Djib.to.auth.username="${{ secrets.QUAY_IO_CLUSTERSCANNER_USERNAME }}" \
-Djib.to.auth.password="${{ secrets.QUAY_IO_CLUSTERSCANNER_TOKEN }}"
gradle jib \
-Djib.to.image=quay.io/sdase/defectdojo-client:${MAJOR} \
-Djib.to.auth.username="${{ secrets.QUAY_IO_CLUSTERSCANNER_USERNAME }}" \
-Djib.to.auth.password="${{ secrets.QUAY_IO_CLUSTERSCANNER_TOKEN }}"
gradle jib \
-Djib.to.image=quay.io/sdase/defectdojo-client:${VERSION} \
-Djib.to.auth.username="${{ secrets.QUAY_IO_CLUSTERSCANNER_USERNAME }}" \
-Djib.to.auth.password="${{ secrets.QUAY_IO_CLUSTERSCANNER_TOKEN }}"
- name: create and push an image statistic-client
run: |
cd statistic-client
chmod +x ./gradlew
if [ "${GITHUB_REF##*/}" == "master" ]; then
VERSION="3.1.${GITHUB_RUN_NUMBER}"
else
BRANCH_TO_DOCKER=$(echo ${GITHUB_REF##*/} | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9._-]//g')
VERSION="$BRANCH_TO_DOCKER-${GITHUB_RUN_NUMBER}"
fi
MAJOR=$(echo "${VERSION}" | tr '.' "\n" | sed -n 1p)
MINOR=$(echo "${VERSION}" | tr '.' "\n" | sed -n 2p)
gradle jib \
-Djib.to.image=quay.io/sdase/defectdojo-statistic-client:${MAJOR}.${MINOR} \
-Djib.to.auth.username="${{ secrets.QUAY_IO_CLUSTERSCANNER_USERNAME }}" \
-Djib.to.auth.password="${{ secrets.QUAY_IO_CLUSTERSCANNER_TOKEN }}"
gradle jib \
-Djib.to.image=quay.io/sdase/defectdojo-statistic-client:${MAJOR} \
-Djib.to.auth.username="${{ secrets.QUAY_IO_CLUSTERSCANNER_USERNAME }}" \
-Djib.to.auth.password="${{ secrets.QUAY_IO_CLUSTERSCANNER_TOKEN }}"
gradle jib \
-Djib.to.image=quay.io/sdase/defectdojo-statistic-client:${VERSION} \
-Djib.to.auth.username="${{ secrets.QUAY_IO_CLUSTERSCANNER_USERNAME }}" \
-Djib.to.auth.password="${{ secrets.QUAY_IO_CLUSTERSCANNER_TOKEN }}"