Compare commits
14 commits
main
...
use-binari
Author | SHA1 | Date | |
---|---|---|---|
059483944f | |||
cbfc1c975b | |||
c8602c46d3 | |||
895a402da5 | |||
74bbcd3580 | |||
d1bb17142a | |||
b932e20ed1 | |||
4929e6eb61 | |||
c8d0437880 | |||
00993aa8fc | |||
d583bc1595 | |||
ea3eb64329 | |||
8d8307d768 | |||
cc3caa58b6 |
3 changed files with 49 additions and 14 deletions
|
@ -1,13 +0,0 @@
|
|||
pipeline:
|
||||
build-and-push:
|
||||
image: plugins/docker
|
||||
registry: code.cozy.town
|
||||
username: ${REGISTRY_USERNAME}
|
||||
password: ${REGISTRY_TOKEN}
|
||||
repo: code.cozy.town/vrifox/hugoci
|
||||
tags:
|
||||
- latest
|
||||
cache_from: code.cozy.town/vrifox/hugoci:latest
|
||||
secrets:
|
||||
- registry_username
|
||||
- registry_token
|
41
.woodpecker/.build-image.yaml
Normal file
41
.woodpecker/.build-image.yaml
Normal 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 ]
|
|
@ -1,2 +1,9 @@
|
|||
FROM docker.io/alpine:latest
|
||||
RUN apk add --no-cache hugo git openssh rsync
|
||||
ARG HUGO_VERSION
|
||||
RUN apk add --no-cache wget tar git openssh rsync pnpm
|
||||
|
||||
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
|
Loading…
Reference in a new issue