Skip to content

Commit

Permalink
ci: Add tag versions to Docker binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
mslipper committed Feb 25, 2023
1 parent d4d8d97 commit 6690188
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ jobs:
docker build \
$(echo -ne $DOCKER_TAGS | tr '\n' ' ') \
-f <<parameters.docker_file>> \
--build-arg VERSION=$CIRCLE_TAG \
<<parameters.docker_context>>
- run:
name: Configure Docker
Expand Down Expand Up @@ -1152,6 +1153,11 @@ workflows:
- hold:
type: approval
context: oplabs-gcr-release
filters:
tags:
only: /^op-node\/v.*/
branches:
ignore: /.*/
- docker-release:
name: op-node-docker-release
filters:
Expand Down
4 changes: 3 additions & 1 deletion op-batcher/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM golang:1.18.0-alpine3.15 as builder

ARG VERSION=v0.0.0

RUN apk add --no-cache make gcc musl-dev linux-headers git jq bash

# build op-batcher with the shared go.mod & go.sum files
Expand All @@ -15,7 +17,7 @@ COPY ./.git /app/.git

WORKDIR /app/op-batcher

RUN make op-batcher
RUN make op-batcher VERSION="$VERSION"

FROM alpine:3.15

Expand Down
4 changes: 3 additions & 1 deletion op-node/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM golang:1.18.0-alpine3.15 as builder

ARG VERSION=v0.0.0

RUN apk add --no-cache make gcc musl-dev linux-headers git jq bash

# build op-node with the shared go.mod & go.sum files
Expand All @@ -13,7 +15,7 @@ COPY ./.git /app/.git

WORKDIR /app/op-node

RUN make op-node
RUN make op-node VERSION="$VERSION"

FROM alpine:3.15

Expand Down
4 changes: 3 additions & 1 deletion op-proposer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM golang:1.18.0-alpine3.15 as builder

ARG VERSION=v0.0.0

RUN apk add --no-cache make gcc musl-dev linux-headers git jq bash

# build op-proposer with the shared go.mod & go.sum files
Expand All @@ -14,7 +16,7 @@ COPY ./.git /app/.git

WORKDIR /app/op-proposer

RUN make op-proposer
RUN make op-proposer VERSION="$VERSION"

FROM alpine:3.15

Expand Down

0 comments on commit 6690188

Please sign in to comment.