This commit is contained in:
parent
56d06f84b1
commit
15bd3caec1
@ -58,17 +58,14 @@ local PipelineBuildContainer(arch='amd64') = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'publish-dockerhub',
|
name: 'publish-dockerhub',
|
||||||
image: 'thegeeklab/drone-docker-buildx:20',
|
image: 'thegeeklab/drone-docker-buildx',
|
||||||
environment: {
|
|
||||||
BUILD_DATE: '$$(date --rfc-3339=seconds)',
|
|
||||||
},
|
|
||||||
settings: {
|
settings: {
|
||||||
dockerfile: 'Dockerfile.' + std.split(arch, '_')[0],
|
dockerfile: 'Dockerfile.' + std.split(arch, '_')[0],
|
||||||
repo: 'thegeeklab/${DRONE_REPO_NAME}',
|
repo: 'thegeeklab/${DRONE_REPO_NAME}',
|
||||||
username: { from_secret: 'docker_username' },
|
username: { from_secret: 'docker_username' },
|
||||||
password: { from_secret: 'docker_password' },
|
password: { from_secret: 'docker_password' },
|
||||||
build_args_from_env: [
|
build_args: [
|
||||||
'BUILD_DATE',
|
'BUILD_DATE=${DRONE_DOCKER_BUILD_TIME}',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
when: {
|
when: {
|
||||||
|
26
.drone.yml
26
.drone.yml
@ -55,18 +55,16 @@ steps:
|
|||||||
- tags
|
- tags
|
||||||
|
|
||||||
- name: publish-dockerhub
|
- name: publish-dockerhub
|
||||||
image: thegeeklab/drone-docker-buildx:20
|
image: thegeeklab/drone-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
build_args_from_env:
|
build_args:
|
||||||
- BUILD_DATE
|
- BUILD_DATE=${DRONE_DOCKER_BUILD_TIME}
|
||||||
dockerfile: Dockerfile.amd64
|
dockerfile: Dockerfile.amd64
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
repo: thegeeklab/${DRONE_REPO_NAME}
|
repo: thegeeklab/${DRONE_REPO_NAME}
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
environment:
|
|
||||||
BUILD_DATE: $$(date --rfc-3339=seconds)
|
|
||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/main
|
- refs/heads/main
|
||||||
@ -137,18 +135,16 @@ steps:
|
|||||||
- tags
|
- tags
|
||||||
|
|
||||||
- name: publish-dockerhub
|
- name: publish-dockerhub
|
||||||
image: thegeeklab/drone-docker-buildx:20
|
image: thegeeklab/drone-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
build_args_from_env:
|
build_args:
|
||||||
- BUILD_DATE
|
- BUILD_DATE=${DRONE_DOCKER_BUILD_TIME}
|
||||||
dockerfile: Dockerfile.arm64
|
dockerfile: Dockerfile.arm64
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
repo: thegeeklab/${DRONE_REPO_NAME}
|
repo: thegeeklab/${DRONE_REPO_NAME}
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
environment:
|
|
||||||
BUILD_DATE: $$(date --rfc-3339=seconds)
|
|
||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/main
|
- refs/heads/main
|
||||||
@ -219,18 +215,16 @@ steps:
|
|||||||
- tags
|
- tags
|
||||||
|
|
||||||
- name: publish-dockerhub
|
- name: publish-dockerhub
|
||||||
image: thegeeklab/drone-docker-buildx:20
|
image: thegeeklab/drone-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
build_args_from_env:
|
build_args:
|
||||||
- BUILD_DATE
|
- BUILD_DATE=${DRONE_DOCKER_BUILD_TIME}
|
||||||
dockerfile: Dockerfile.arm
|
dockerfile: Dockerfile.arm
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
repo: thegeeklab/${DRONE_REPO_NAME}
|
repo: thegeeklab/${DRONE_REPO_NAME}
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
environment:
|
|
||||||
BUILD_DATE: $$(date --rfc-3339=seconds)
|
|
||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/main
|
- refs/heads/main
|
||||||
@ -358,6 +352,6 @@ depends_on:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 478b279e928c111b85864329aa2aa6744e5d77f9a7b7ddbaee1fdd388cda83b8
|
hmac: a29790fab71a1ebb5dd6904c898ccd4e3137b40f0014b763eb22fc6ede074547
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user