Skip to content

Commit

Permalink
👷 allow pipeline to run with arbitrary version (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
loispostula committed Nov 28, 2024
1 parent 4cdf485 commit b72c12e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 90 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: Build builder for orica_server with tagged version

name: Build builder for axum_server related servers
on:
workflow_dispatch:
inputs:
rust_version:
type: string
default: "1.82"
description: Rust rust_version to install

jobs:
build-rust-test-image:
Expand All @@ -17,14 +21,13 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# Build and Push Image with Cache
- name: Build & Push
uses: docker/build-push-action@v3
with:
context: docker/orica_server_builder
file: docker/orica_server_builder/Dockerfile_versioned
context: docker/axum_server_builder
file: docker/axum_server_builder/Dockerfile
push: true
build-args: |
RUST_VERSION=1.80
RUST_VERSION=${{ inputs.rust_version }}
tags: |
ghcr.io/foresightminingsoftwarecorporation/orica-server-builder-versioned:rust-1.80
ghcr.io/foresightminingsoftwarecorporation/axum-server-builder:${{ inputs.rust_version }}
27 changes: 0 additions & 27 deletions .github/workflows/build_orica_server_builder_image.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ubuntu:focal

WORKDIR /usr/src/
ARG RUST_VERSION=1.82
ARG OPENSSL_VERSION=1.1.1m

ENV DEBIAN_FRONTEND=noninteractive
Expand Down Expand Up @@ -44,7 +45,7 @@ RUN ln -s "/usr/bin/g++" "/usr/bin/musl-g++"

# install Rust
RUN curl https://sh.rustup.rs -sSf | \
sh -s -- --default-toolchain 1.77 -y -t x86_64-unknown-linux-musl --profile minimal
sh -s -- --default-toolchain $RUST_VERSION -y -t x86_64-unknown-linux-musl --profile minimal

ENV PATH=/root/.cargo/bin:$PATH
RUN rustup target add x86_64-unknown-linux-musl
Expand Down
55 changes: 0 additions & 55 deletions docker/orica_server_builder/Dockerfile_versioned

This file was deleted.

0 comments on commit b72c12e

Please sign in to comment.