Skip to content

Commit

Permalink
envsubst for op-ufm
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarof2 committed May 20, 2024
1 parent 8624889 commit e3c2ac2
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/docker-op-ufm-build-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Build container and push to cLabs registry
on:
push:
branches:
- main
paths:
# Run if any of the following files are changed
- 'op-ufm/**'

jobs:
build:
runs-on: ['self-hosted', 'org', '8-cpu']
permissions: # Required for workload identity auth and push the trivy results to GitHub
contents: read
id-token: write
security-events: write
steps:

- name: Checkout
uses: actions/checkout@v4

- name: Authenticate to Google Cloud
uses: celo-org/reusable-workflows/.github/actions/auth-gcp-artifact-registry@main
with:
workload-id-provider: projects/1094498259535/locations/global/workloadIdentityPools/gh-optimism/providers/github-by-repos
service-account: celo-optimism-gh@devopsre.iam.gserviceaccount.com
access-token-lifetime: "60m"
docker-gcp-registries: us-west1-docker.pkg.dev

- name: Build, push and scan the container
uses: celo-org/reusable-workflows/.github/actions/build-container@main
with:
platforms: linux/amd64
registry: us-west1-docker.pkg.dev/devopsre/dev-images/optimism
tags: op-ufm-${{ github.sha }}
context: .
dockerfile: op-ufm/Dockerfile
push: true
trivy: false
2 changes: 1 addition & 1 deletion op-ufm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ COPY --from=builder /app/bin/ufm /bin/ufm
RUN apk update && \
chmod +x /bin/entrypoint.sh

RUN apk add ca-certificates jq curl bind-tools
RUN apk add ca-certificates jq curl bind-tools gettext

VOLUME /etc/ufm

Expand Down

0 comments on commit e3c2ac2

Please sign in to comment.