Commit 66901881 authored by Matthew Slipper's avatar Matthew Slipper

ci: Add tag versions to Docker binaries

parent d4d8d970
...@@ -228,6 +228,7 @@ jobs: ...@@ -228,6 +228,7 @@ jobs:
docker build \ docker build \
$(echo -ne $DOCKER_TAGS | tr '\n' ' ') \ $(echo -ne $DOCKER_TAGS | tr '\n' ' ') \
-f <<parameters.docker_file>> \ -f <<parameters.docker_file>> \
--build-arg VERSION=$CIRCLE_TAG \
<<parameters.docker_context>> <<parameters.docker_context>>
- run: - run:
name: Configure Docker name: Configure Docker
...@@ -1152,6 +1153,11 @@ workflows: ...@@ -1152,6 +1153,11 @@ workflows:
- hold: - hold:
type: approval type: approval
context: oplabs-gcr-release context: oplabs-gcr-release
filters:
tags:
only: /^op-node\/v.*/
branches:
ignore: /.*/
- docker-release: - docker-release:
name: op-node-docker-release name: op-node-docker-release
filters: filters:
......
FROM golang:1.18.0-alpine3.15 as builder 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 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 # build op-batcher with the shared go.mod & go.sum files
...@@ -15,7 +17,7 @@ COPY ./.git /app/.git ...@@ -15,7 +17,7 @@ COPY ./.git /app/.git
WORKDIR /app/op-batcher WORKDIR /app/op-batcher
RUN make op-batcher RUN make op-batcher VERSION="$VERSION"
FROM alpine:3.15 FROM alpine:3.15
......
FROM golang:1.18.0-alpine3.15 as builder 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 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 # build op-node with the shared go.mod & go.sum files
...@@ -13,7 +15,7 @@ COPY ./.git /app/.git ...@@ -13,7 +15,7 @@ COPY ./.git /app/.git
WORKDIR /app/op-node WORKDIR /app/op-node
RUN make op-node RUN make op-node VERSION="$VERSION"
FROM alpine:3.15 FROM alpine:3.15
......
FROM golang:1.18.0-alpine3.15 as builder 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 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 # build op-proposer with the shared go.mod & go.sum files
...@@ -14,7 +16,7 @@ COPY ./.git /app/.git ...@@ -14,7 +16,7 @@ COPY ./.git /app/.git
WORKDIR /app/op-proposer WORKDIR /app/op-proposer
RUN make op-proposer RUN make op-proposer VERSION="$VERSION"
FROM alpine:3.15 FROM alpine:3.15
......
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