drone correct arch management
This commit is contained in:
parent
30b85c9950
commit
07fc555bed
@ -10,6 +10,8 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker:linux-amd64
|
image: plugins/docker:linux-amd64
|
||||||
settings:
|
settings:
|
||||||
|
build_args:
|
||||||
|
- HUGO_ARCH=amd64
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
dry_run: true
|
dry_run: true
|
||||||
repo: docker.asperti.com/paspo/hugo
|
repo: docker.asperti.com/paspo/hugo
|
||||||
@ -20,6 +22,8 @@ steps:
|
|||||||
- name: build_and_publish
|
- name: build_and_publish
|
||||||
image: plugins/docker:linux-amd64
|
image: plugins/docker:linux-amd64
|
||||||
settings:
|
settings:
|
||||||
|
build_args:
|
||||||
|
- HUGO_ARCH=amd64
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
force_tag: true
|
force_tag: true
|
||||||
password:
|
password:
|
||||||
@ -49,6 +53,8 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker:linux-arm64
|
image: plugins/docker:linux-arm64
|
||||||
settings:
|
settings:
|
||||||
|
build_args:
|
||||||
|
- HUGO_ARCH=arm64
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
dry_run: true
|
dry_run: true
|
||||||
repo: docker.asperti.com/paspo/hugo
|
repo: docker.asperti.com/paspo/hugo
|
||||||
@ -59,6 +65,8 @@ steps:
|
|||||||
- name: build_and_publish
|
- name: build_and_publish
|
||||||
image: plugins/docker:linux-arm64
|
image: plugins/docker:linux-arm64
|
||||||
settings:
|
settings:
|
||||||
|
build_args:
|
||||||
|
- HUGO_ARCH=arm64
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
force_tag: true
|
force_tag: true
|
||||||
password:
|
password:
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
FROM debian:11-slim
|
FROM debian:11-slim
|
||||||
|
|
||||||
ARG HUGO_VERSION=0.110.0
|
ARG HUGO_VERSION=0.110.0
|
||||||
|
ARG HUGO_ARCH=amd64
|
||||||
|
|
||||||
ADD "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb" /tmp/hugo.deb
|
ADD "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-${HUGO_ARCH}.deb" /tmp/hugo.deb
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
apt install -y /tmp/hugo.deb && rm /tmp/hugo.deb
|
apt install -y /tmp/hugo.deb && rm /tmp/hugo.deb
|
||||||
|
Loading…
Reference in New Issue
Block a user