feat(packages:starship): use custom rust image

This commit is contained in:
Tine Jozelj 2020-12-26 17:24:36 +01:00
parent cb159d66a6
commit 1849f034cd
No known key found for this signature in database
GPG key ID: 3818B74E3830D7CF
4 changed files with 11 additions and 1 deletions

View file

@ -25,6 +25,7 @@ jobs:
echo ::set-output name=docker_image::${DOCKER_IMAGE} echo ::set-output name=docker_image::${DOCKER_IMAGE}
echo ::set-output name=version::${VERSION} echo ::set-output name=version::${VERSION}
echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \ echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \
--build-arg REPOSITORY=ghcr.io/mentos1386
--build-arg VERSION=${VERSION} \ --build-arg VERSION=${VERSION} \
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \ --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
--build-arg VCS_REF=${GITHUB_SHA::8} \ --build-arg VCS_REF=${GITHUB_SHA::8} \
@ -78,6 +79,7 @@ jobs:
echo ::set-output name=docker_image::${DOCKER_IMAGE} echo ::set-output name=docker_image::${DOCKER_IMAGE}
echo ::set-output name=version::${VERSION} echo ::set-output name=version::${VERSION}
echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \ echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \
--build-arg REPOSITORY=ghcr.io/mentos1386
--build-arg VERSION=${VERSION} \ --build-arg VERSION=${VERSION} \
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \ --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
--build-arg VCS_REF=${GITHUB_SHA::8} \ --build-arg VCS_REF=${GITHUB_SHA::8} \
@ -131,6 +133,7 @@ jobs:
echo ::set-output name=docker_image::${DOCKER_IMAGE} echo ::set-output name=docker_image::${DOCKER_IMAGE}
echo ::set-output name=version::${VERSION} echo ::set-output name=version::${VERSION}
echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \ echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \
--build-arg REPOSITORY=ghcr.io/mentos1386
--build-arg VERSION=${VERSION} \ --build-arg VERSION=${VERSION} \
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \ --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
--build-arg VCS_REF=${GITHUB_SHA::8} \ --build-arg VCS_REF=${GITHUB_SHA::8} \
@ -184,6 +187,7 @@ jobs:
echo ::set-output name=docker_image::${DOCKER_IMAGE} echo ::set-output name=docker_image::${DOCKER_IMAGE}
echo ::set-output name=version::${VERSION} echo ::set-output name=version::${VERSION}
echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \ echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \
--build-arg REPOSITORY=ghcr.io/mentos1386
--build-arg VERSION=${VERSION} \ --build-arg VERSION=${VERSION} \
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \ --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
--build-arg VCS_REF=${GITHUB_SHA::8} \ --build-arg VCS_REF=${GITHUB_SHA::8} \
@ -237,6 +241,7 @@ jobs:
echo ::set-output name=docker_image::${DOCKER_IMAGE} echo ::set-output name=docker_image::${DOCKER_IMAGE}
echo ::set-output name=version::${VERSION} echo ::set-output name=version::${VERSION}
echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \ echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \
--build-arg REPOSITORY=ghcr.io/mentos1386
--build-arg VERSION=${VERSION} \ --build-arg VERSION=${VERSION} \
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \ --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
--build-arg VCS_REF=${GITHUB_SHA::8} \ --build-arg VCS_REF=${GITHUB_SHA::8} \

View file

@ -1,5 +1,8 @@
FROM alpine:3.12 FROM alpine:3.12
LABEL maintainer="Tine <mentos1386> Jozelj <tine@tjo.space>"
LABEL org.opencontainers.image.source https://github.com/mentos1386/workspace
RUN apk add --no-cache \ RUN apk add --no-cache \
ca-certificates \ ca-certificates \
gcc gcc

View file

@ -1,4 +1,5 @@
FROM rust:1-alpine as build ARG REPOSITORY=ghcr.io/mentos1386
FROM ${REPOSITORY}/rust:1.48.0 as build
WORKDIR /usr/src/starship WORKDIR /usr/src/starship

View file

@ -25,6 +25,7 @@ jobs:
echo ::set-output name=docker_image::${DOCKER_IMAGE} echo ::set-output name=docker_image::${DOCKER_IMAGE}
echo ::set-output name=version::${VERSION} echo ::set-output name=version::${VERSION}
echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \ echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \
--build-arg REPOSITORY=[[[$.repository]]]
--build-arg VERSION=${VERSION} \ --build-arg VERSION=${VERSION} \
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \ --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
--build-arg VCS_REF=${GITHUB_SHA::8} \ --build-arg VCS_REF=${GITHUB_SHA::8} \