Compare commits

..

14 commits

Author SHA1 Message Date
059483944f
add pnpm 2024-02-16 20:39:12 +01:00
cbfc1c975b
just trying 2023-07-26 16:15:12 +02:00
c8602c46d3
Latein => Ende 2023-07-26 16:13:52 +02:00
895a402da5
idk 2023-07-26 16:12:37 +02:00
74bbcd3580
try without when block 2023-07-26 16:09:11 +02:00
d1bb17142a
fix pipeline 5th try 2023-07-26 16:02:48 +02:00
b932e20ed1
fix pipeline 4th try 2023-07-26 16:02:16 +02:00
4929e6eb61
fix pipeline 3rd try 2023-07-26 16:00:20 +02:00
c8d0437880
fix pipeline 2nd try 2023-07-26 15:58:48 +02:00
00993aa8fc
fix pipeline 2023-07-26 15:57:51 +02:00
d583bc1595
fix variable 2nd try 2023-07-26 15:42:26 +02:00
ea3eb64329
fix variable 2023-07-26 15:37:11 +02:00
8d8307d768
use latest binaries 2023-07-26 15:35:54 +02:00
cc3caa58b6
use settings block
Some checks failed
ci/woodpecker/manual/woodpecker Pipeline failed
ci/woodpecker/push/woodpecker Pipeline is pending
2023-05-16 20:23:43 +02:00
3 changed files with 49 additions and 16 deletions

View file

@ -1,13 +0,0 @@
steps:
build-and-push:
image: plugins/docker
settings:
registry: code.cozy.town
username:
from_secret: registry_username
password:
from_secret: registry_token
repo: code.cozy.town/vrifox/hugoci
tags:
- latest
cache_from: code.cozy.town/vrifox/hugoci:latest

View file

@ -0,0 +1,41 @@
variables:
- global_env: &global_env
- HUGO_VERSION=0.115.3
steps:
build-and-push:
image: woodpeckerci/plugin-docker-buildx
settings:
registry: code.cozy.town
username:
from_secret: registry_username
password:
from_secret: registry_token
repo: code.cozy.town/vrifox/hugoci
tags:
- latest
- ${HUGO_VERSION}
cache_from: code.cozy.town/vrifox/hugoci:latest
build_args:
- HUGO_VERSION: ${HUGO_VERSION}
when:
branch: main
test:
image: woodpeckerci/plugin-docker-buildx
settings:
registry: code.cozy.town
username:
from_secret: registry_username
password:
from_secret: registry_token
repo: code.cozy.town/vrifox/hugoci
tags:
- latest
- ${HUGO_VERSION}
cache_from: code.cozy.town/vrifox/hugoci:latest
build_args:
- HUGO_VERSION: ${HUGO_VERSION}
dry-run: true
when:
event: [ push, pull_request, manual ]

View file

@ -1,4 +1,9 @@
FROM docker.io/alpine:latest FROM docker.io/alpine:latest
RUN apk add --no-cache hugo git openssh rsync npm go ARG HUGO_VERSION
RUN hugo version RUN apk add --no-cache wget tar git openssh rsync pnpm
RUN npm --version
RUN wget https://github.com/gohugoio/hugo/releases/latest/download/hugo_extended_${HUGO_VERSION}_linux_amd64.tar.gz
RUN tar -xf hugo_extended_${HUGO_VERSION}_linux_amd64.tar.gz
RUN ls -lah
RUN chmod +x hugo_extended_${HUGO_VERSION}_linux_amd64
RUN mv hugo_extended_${HUGO_VERSION}_linux_amd64 /usr/local/bin/hugo