Skip to content

Commit

Permalink
[nc] test using gha-tools-action workflow for building job containers
Browse files Browse the repository at this point in the history
Signed-off-by: Nic Cheneweth <[email protected]>
  • Loading branch information
ncheneweth committed May 15, 2024
1 parent a1dfab3 commit 249ce24
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 24 deletions.
24 changes: 12 additions & 12 deletions .github/actions/before-static-analysis/action.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# yamllint disable rule:line-length
---
name: test step-like
name: setup environment

description: test
description: load values from 1password vault

inputs:

dockerfile:
description: Name of dockerfile
instance:
description: input value that can be used to control which actions are run
required: false
default: "Dockerfile"
default: ""

runs:
using: "composite"

steps:

- name: running a command
shell: bash
run: echo "here"

- name: Install 1Password CLI
uses: 1password/install-cli-action@v1
- name: load values from 1password vault
uses: 1password/load-secrets-action@v2
with:
version: latest
export-env: true
env:
DOCKER_LOGIN: op://empc-lab/svc-dockerhub/username
DOCKER_PASSWORD: op://empc-lab/svc-dockerhub/password
SNYK_TOKEN: op://empc-lab/svc-snyk/api-token
6 changes: 1 addition & 5 deletions .github/workflows/development-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,4 @@ jobs:
snyk-version: 1.1291.0
bats-version: 1.11.0
hadolint-version: 2.12.0
trivy-version: 0.51.1
grype-version: 0.77.4
cosign-version: 2.2.4
syft-version: 1.4.1
oras-version: 1.1.0
before-static-analysis: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.python-version
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
FROM alpine:3.19.1

LABEL org.opencontainers.image.title="circleci-base-image" \
org.opencontainers.image.description="Alpine-based CircleCI executor image" \
org.opencontainers.image.documentation="https://github.com/ThoughtWorks-DPS/circleci-base-image" \
org.opencontainers.image.source="https://github.com/ThoughtWorks-DPS/circleci-base-image" \
org.opencontainers.image.url="https://github.com/ThoughtWorks-DPS/circleci-base-image" \
LABEL org.opencontainers.image.title="gha-container-base-image" \
org.opencontainers.image.description="Alpine-based github actions job container image" \
org.opencontainers.image.documentation="https://github.com/ThoughtWorks-DPS/gha-container-base-image" \
org.opencontainers.image.source="https://github.com/ThoughtWorks-DPS/gha-container-base-image" \
org.opencontainers.image.url="https://github.com/ThoughtWorks-DPS/gha-container-base-image" \
org.opencontainers.image.vendor="ThoughtWorks, Inc." \
org.opencontainers.image.authors="[email protected]" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.created="CREATED" \
org.opencontainers.image.version="VERSION"

ENV ONEPASSWORD_VERSION=2.27.0
ENV ONEPASSWORD_VERSION=2.28.0
ENV TELLER_VERSION=1.5.6
ENV VAULT_VERSION=1.16.2
ENV BUILDEVENTS_VERSION=0.16.0
Expand All @@ -24,7 +24,7 @@ ENV MUSL_LOCPATH=/usr/share/i18n/locales/musl \

# hadolint ignore=DL3003,DL3004,DL4001,SC2035
RUN apk add --no-cache \
git==2.43.0-r0 \
git==2.43.4-r0 \
openssh==9.6_p1-r0 \
tar==1.35-r2 \
gzip==1.13-r0 \
Expand Down

0 comments on commit 249ce24

Please sign in to comment.