Skip to content

Commit

Permalink
trying to use only "container test" step
Browse files Browse the repository at this point in the history
Signed-off-by: Noam Gal <[email protected]>
  • Loading branch information
ATGardner committed Oct 5, 2024
1 parent f2a5c0f commit 5035987
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down
38 changes: 19 additions & 19 deletions build/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ stages:
- Prepare
- Test
- Build
- Snyk Scan
# - Snyk Scan
- Push Dev

steps:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5035987

Please sign in to comment.