Commit 96468b79 authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

op-deployer: Add Docker builds (#12660)

* op-deployer: Add Docker builds

* fix job syntax

* specify dockerfile

* remove accidental whitespace changes
parent 6d57ace1
......@@ -1242,9 +1242,25 @@ jobs:
description: Goreleaser config file
default: .goreleaser.yaml
type: string
machine: true
resource_class: ethereum-optimism/latitude-1
docker:
- image: <<pipeline.parameters.ci_builder_image>>
resource_class: large
steps:
- setup_remote_docker
- gcp-cli/install
- gcp-oidc-authenticate
- run:
name: Install goreleaser pro
command: |
mkdir goreleaser
curl -L -o goreleaser.tgz https://github.com/goreleaser/goreleaser-pro/releases/download/v2.3.2-pro/goreleaser-pro_Linux_x86_64.tar.gz
tar -xzvf goreleaser.tgz
mv goreleaser /usr/local/bin/goreleaser
rm -rf goreleaser
- run:
name: Configure Docker
command: |
gcloud auth configure-docker us-docker.pkg.dev
- checkout
- run:
name: Run goreleaser
......
......@@ -50,6 +50,20 @@ archives:
- goos: windows
format: zip
dockers:
- id: default
goos: linux
goarch: amd64
dockerfile: Dockerfile.default
image_templates:
- "us-docker.pkg.dev/oplabs-tools-artifacts/images/op-deployer:{{ .Tag }}"
- id: minimal
goos: linux
goarch: amd64
dockerfile: Dockerfile.minimal
image_templates:
- "us-docker.pkg.dev/oplabs-tools-artifacts/images/op-deployer:{{ .Tag }}-minimal"
changelog:
sort: asc
filters:
......
FROM debian:bookworm-20240812-slim
ENTRYPOINT ["/op-deployer"]
COPY op-deployer /op-deployer
\ No newline at end of file
FROM scratch
ENTRYPOINT ["/op-deployer"]
COPY op-deployer /op-deployer
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment