Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 46a77bb3 authored by Daya Adianto's avatar Daya Adianto
Browse files

Add command to actually push the container image

parent f8a456d3
No related branches found
No related tags found
No related merge requests found
Pipeline #20105 passed
...@@ -33,6 +33,7 @@ Publish to Docker Hub: ...@@ -33,6 +33,7 @@ Publish to Docker Hub:
--build-arg=IMAGE_CREATED="$(date --utc -Iseconds)" --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_REVISION="$(git show --pretty=oneline | tac | tail -n 1 | awk '{print $1}')"
--tag $IMAGE_NAMESPACE/sonar-scanner-cli:latest . --tag $IMAGE_NAMESPACE/sonar-scanner-cli:latest .
- docker push $IMAGE_NAMESPACE/sonar-scanner-cli:latest
when: manual when: manual
allow_failure: true allow_failure: true
tags: tags:
......
...@@ -21,7 +21,7 @@ RUN apt-get update \ ...@@ -21,7 +21,7 @@ RUN apt-get update \
# Configure Sonar Scanner CLI # Configure Sonar Scanner CLI
ARG SONAR_SCANNER_CLI_VERSION=4.0.0.1744 ARG SONAR_SCANNER_CLI_VERSION=4.0.0.1744
RUN wget -O sonar-scanner-cli.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_CLI_VERSION-linux.zip \ RUN wget -qO sonar-scanner-cli.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_CLI_VERSION-linux.zip \
&& unzip sonar-scanner-cli.zip -d /opt \ && unzip sonar-scanner-cli.zip -d /opt \
&& rm sonar-scanner-cli.zip \ && rm sonar-scanner-cli.zip \
&& chmod +x /opt/sonar-scanner-$SONAR_SCANNER_CLI_VERSION-linux/bin/sonar-scanner \ && chmod +x /opt/sonar-scanner-$SONAR_SCANNER_CLI_VERSION-linux/bin/sonar-scanner \
...@@ -29,7 +29,7 @@ RUN wget -O sonar-scanner-cli.zip https://binaries.sonarsource.com/Distribution/ ...@@ -29,7 +29,7 @@ RUN wget -O sonar-scanner-cli.zip https://binaries.sonarsource.com/Distribution/
# Configure shellcheck # Configure shellcheck
ARG SHELLCHECK_VERSION=latest ARG SHELLCHECK_VERSION=latest
RUN wget -O /opt/shellcheck-${SHELLCHECK_VERSION}.tar.xz https://shellcheck.storage.googleapis.com/shellcheck-${SHELLCHECK_VERSION}.linux.x86_64.tar.xz \ RUN wget -qO /opt/shellcheck-${SHELLCHECK_VERSION}.tar.xz https://shellcheck.storage.googleapis.com/shellcheck-${SHELLCHECK_VERSION}.linux.x86_64.tar.xz \
&& cd /opt \ && cd /opt \
&& tar -xf shellcheck-${SHELLCHECK_VERSION}.tar.xz \ && tar -xf shellcheck-${SHELLCHECK_VERSION}.tar.xz \
&& rm shellcheck-${SHELLCHECK_VERSION}.tar.xz \ && rm shellcheck-${SHELLCHECK_VERSION}.tar.xz \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment