From 8c6d32bce7ec89af98639f7f66422a24e527b2aa Mon Sep 17 00:00:00 2001 From: Noam Gal Date: Sat, 5 Oct 2024 15:33:50 +0300 Subject: [PATCH] trying to use only "container test" step --- Dockerfile | 4 ++-- build/ci.yml | 38 +++++++++++++++++++------------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Dockerfile b/Dockerfile index 76aba081..11b2397d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ ARG BASE_IMAGE=docker.io/library/ubuntu:22.04 ### Base -FROM $BASE_IMAGE as base +FROM $BASE_IMAGE AS base USER root @@ -25,7 +25,7 @@ USER 999 WORKDIR /home/autopilot ### Build -FROM docker.io/library/golang:1.23 as build +FROM docker.io/library/golang:1.23 AS build WORKDIR /go/src/github.com/argoproj-labs/argocd-autopilot diff --git a/build/ci.yml b/build/ci.yml index 22481ba8..9ca93169 100644 --- a/build/ci.yml +++ b/build/ci.yml @@ -5,7 +5,7 @@ stages: - Prepare - Test - Build - - Snyk Scan + # - Snyk Scan - Push Dev steps: @@ -111,26 +111,26 @@ steps: on: - success - scan-module: - stage: Snyk Scan - title: scan golang module - image: snyk/snyk:golang - shell: bash - environment: - - SNYK_TOKEN=${{SNYK_TOKEN}} - commands: - - snyk test --severity-threshold=${{SNYK_SEVERITY_THRESHOLD}} - when: - steps: - - name: prepare_env_vars - on: - - success - - name: clean - on: - - success + # scan-module: + # stage: Snyk Scan + # title: scan golang module + # image: snyk/snyk:golang + # shell: bash + # environment: + # - SNYK_TOKEN=${{SNYK_TOKEN}} + # commands: + # - snyk test --severity-threshold=${{SNYK_SEVERITY_THRESHOLD}} + # when: + # steps: + # - name: prepare_env_vars + # on: + # - success + # - name: clean + # on: + # - success scan-image: - stage: Snyk Scan + stage: Build title: scan docker image image: snyk/snyk:golang shell: bash