Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add VERSION to ci-base-image #1735

Merged
merged 14 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/merge-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ jobs:
name: Publish CI Base Image
env:
IMAGE_NAME: ci-base-image
IMAGE_VERSION: 1.0.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

BRANCH_NAME: main
runs-on: ubuntu-20.04
steps:
Expand Down Expand Up @@ -113,3 +114,5 @@ jobs:
tags: |
${{steps.repo_slug.outputs.result}}/${{env.IMAGE_NAME}}:${{env.BRANCH_NAME}}
${{steps.repo_slug.outputs.result}}/${{env.IMAGE_NAME}}:latest
${{steps.repo_slug.outputs.result}}/${{env.IMAGE_NAME}}:${{env.IMAGE_VERSION}}}
build-args: IMAGE_VERSION=${{env.IMAGE_VERSION}}
3 changes: 3 additions & 0 deletions tools/ci/docker/ci-base-image.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ FROM --platform=linux/amd64 ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
LABEL maintainer="Frequency"
LABEL description="Frequency CI base image"
ARG IMAGE_VERSION
LABEL version="{IMAGE_VERSION}"

WORKDIR /ci
RUN apt-get update && \
Expand All @@ -17,5 +19,6 @@ ENV RUSTUP_HOME="/root/.cargo"
ENV CARGO_HOME="/root/.cargo"
RUN rustup toolchain install nightly-2023-07-13
RUN rustup target add x86_64-unknown-linux-gnu --toolchain nightly-2023-07-13
RUN rustup target add wasm32-unknown-unknown --toolchain nightly-2023-07-13

RUN git config --system --add safe.directory /__w/frequency/frequency