mirror of
https://github.com/mentos1386/dotfiles.git
synced 2025-01-31 00:35:42 +00:00
feat(packages:starship): use custom rust image
This commit is contained in:
parent
cb159d66a6
commit
1849f034cd
4 changed files with 11 additions and 1 deletions
5
.github/workflows/packages.yaml
vendored
5
.github/workflows/packages.yaml
vendored
|
@ -25,6 +25,7 @@ jobs:
|
|||
echo ::set-output name=docker_image::${DOCKER_IMAGE}
|
||||
echo ::set-output name=version::${VERSION}
|
||||
echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \
|
||||
--build-arg REPOSITORY=ghcr.io/mentos1386
|
||||
--build-arg VERSION=${VERSION} \
|
||||
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
|
||||
--build-arg VCS_REF=${GITHUB_SHA::8} \
|
||||
|
@ -78,6 +79,7 @@ jobs:
|
|||
echo ::set-output name=docker_image::${DOCKER_IMAGE}
|
||||
echo ::set-output name=version::${VERSION}
|
||||
echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \
|
||||
--build-arg REPOSITORY=ghcr.io/mentos1386
|
||||
--build-arg VERSION=${VERSION} \
|
||||
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
|
||||
--build-arg VCS_REF=${GITHUB_SHA::8} \
|
||||
|
@ -131,6 +133,7 @@ jobs:
|
|||
echo ::set-output name=docker_image::${DOCKER_IMAGE}
|
||||
echo ::set-output name=version::${VERSION}
|
||||
echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \
|
||||
--build-arg REPOSITORY=ghcr.io/mentos1386
|
||||
--build-arg VERSION=${VERSION} \
|
||||
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
|
||||
--build-arg VCS_REF=${GITHUB_SHA::8} \
|
||||
|
@ -184,6 +187,7 @@ jobs:
|
|||
echo ::set-output name=docker_image::${DOCKER_IMAGE}
|
||||
echo ::set-output name=version::${VERSION}
|
||||
echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \
|
||||
--build-arg REPOSITORY=ghcr.io/mentos1386
|
||||
--build-arg VERSION=${VERSION} \
|
||||
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
|
||||
--build-arg VCS_REF=${GITHUB_SHA::8} \
|
||||
|
@ -237,6 +241,7 @@ jobs:
|
|||
echo ::set-output name=docker_image::${DOCKER_IMAGE}
|
||||
echo ::set-output name=version::${VERSION}
|
||||
echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \
|
||||
--build-arg REPOSITORY=ghcr.io/mentos1386
|
||||
--build-arg VERSION=${VERSION} \
|
||||
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
|
||||
--build-arg VCS_REF=${GITHUB_SHA::8} \
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
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 \
|
||||
ca-certificates \
|
||||
gcc
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ jobs:
|
|||
echo ::set-output name=docker_image::${DOCKER_IMAGE}
|
||||
echo ::set-output name=version::${VERSION}
|
||||
echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \
|
||||
--build-arg REPOSITORY=[[[$.repository]]]
|
||||
--build-arg VERSION=${VERSION} \
|
||||
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
|
||||
--build-arg VCS_REF=${GITHUB_SHA::8} \
|
||||
|
|
Loading…
Reference in a new issue