mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 09:00:10 +00:00
attempt 2 at BUILT_BY in Docker CI
This commit is contained in:
parent
1a85feb344
commit
c5d45355a8
@ -5,9 +5,7 @@ when:
|
|||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: docker.io/woodpeckerci/plugin-docker-buildx
|
image: docker.io/woodpeckerci/plugin-docker-buildx
|
||||||
environment:
|
secrets: [ BUILT_BY ]
|
||||||
BUILTBY:
|
|
||||||
from_secret: BUILT_BY
|
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
from_secret: DOCKER_USERNAME
|
from_secret: DOCKER_USERNAME
|
||||||
@ -17,6 +15,8 @@ steps:
|
|||||||
tags: unstable
|
tags: unstable
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
|
build_args:
|
||||||
|
- BUILT_BY: $BUILT_BY
|
||||||
- name: buildrone
|
- name: buildrone
|
||||||
image: docker.io/python
|
image: docker.io/python
|
||||||
environment:
|
environment:
|
||||||
|
@ -5,9 +5,7 @@ when:
|
|||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: docker.io/woodpeckerci/plugin-docker-buildx
|
image: docker.io/woodpeckerci/plugin-docker-buildx
|
||||||
environment:
|
secrets: [ BUILT_BY ]
|
||||||
BUILTBY:
|
|
||||||
from_secret: BUILT_BY
|
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
from_secret: DOCKER_USERNAME
|
from_secret: DOCKER_USERNAME
|
||||||
@ -17,6 +15,8 @@ steps:
|
|||||||
tags: latest
|
tags: latest
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
|
build_args:
|
||||||
|
- BUILT_BY: $BUILT_BY
|
||||||
- name: buildrone
|
- name: buildrone
|
||||||
image: docker.io/python
|
image: docker.io/python
|
||||||
environment:
|
environment:
|
||||||
|
@ -15,6 +15,8 @@ RUN (cd /opt/build; make configuration npm email typescript variants-html bundle
|
|||||||
FROM --platform=$BUILDPLATFORM golang:latest AS build
|
FROM --platform=$BUILDPLATFORM golang:latest AS build
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
ENV GOARCH=$TARGETARCH
|
ENV GOARCH=$TARGETARCH
|
||||||
|
ARG BUILT_BY
|
||||||
|
ENV BUILTBY=$BUILT_BY
|
||||||
|
|
||||||
COPY --from=support /opt/build /opt/build
|
COPY --from=support /opt/build /opt/build
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user