Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 0a3f23f1 authored by Ichlasul Affan's avatar Ichlasul Affan
Browse files

Fixed kaniko arguments and upgraded SonarScanner CLI version.

parent 6366aa0e
Branches
No related tags found
No related merge requests found
Pipeline #63517 passed with warnings
......@@ -42,10 +42,10 @@ Publish to Docker Hub:
script:
- echo "{\"auths\":{\"https://index.docker.io/v1/\":{\"username\":\"$DOCKERHUB_USERNAME\",\"password\":\"$DOCKERHUB_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor
--build-arg=IMAGE_CREATED="$(date --utc -Iseconds)"
--build-arg=IMAGE_REVISION="$(git show --pretty=oneline | tac | tail -n 1 | awk '{print $1}')"
--build-arg=IMAGE_AUTHOR="${IMAGE_AUTHOR}"
--tag $IMAGE_NAMESPACE/sonar-scanner-flutter-cli:latest
--build-arg IMAGE_CREATED="$(date --utc -Iseconds)"
--build-arg IMAGE_REVISION="${CI_COMMIT_SHA}"
--build-arg IMAGE_AUTHOR="${IMAGE_AUTHOR}"
--destination $IMAGE_NAMESPACE/sonar-scanner-flutter-cli:latest
when: manual
allow_failure: true
only:
......
......@@ -16,7 +16,7 @@ RUN sudo apt-get update \
&& sudo rm -rf /var/lib/apt/lists/*
# Configure Sonar Scanner CLI
ARG SONAR_SCANNER_CLI_VERSION=4.0.0.1744
ARG SONAR_SCANNER_CLI_VERSION=4.6.0.2311
RUN wget -qO sonar-scanner-cli.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_CLI_VERSION-linux.zip \
&& sudo unzip sonar-scanner-cli.zip -d /opt \
&& sudo chown -R $(whoami):$(whoami) /opt/sonar-scanner-$SONAR_SCANNER_CLI_VERSION-linux \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment