feat: migrate from drone to woodpecker
ci/woodpecker/tag/docker Pipeline failed
Details
ci/woodpecker/tag/docker Pipeline failed
Details
parent
a5eaaaf021
commit
5e634300de
67
.drone.yml
67
.drone.yml
|
@ -1,67 +0,0 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: linux-amd64
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: publish
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
registry: gitea.dwysokinski.me
|
||||
repo: gitea.dwysokinski.me/kichiyaki/dwysokinski.me
|
||||
auto_tag: true
|
||||
auto_tag_suffix: linux-amd64
|
||||
dockerfile: Dockerfile
|
||||
build_args:
|
||||
- PLAUSIBLE_CUSTOM_DOMAIN=plausible.dwysokinski.me
|
||||
- PLAUSIBLE_SCRIPT_URI=/js/script.js
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: manifest
|
||||
|
||||
steps:
|
||||
- name: manifest
|
||||
image: plugins/manifest
|
||||
settings:
|
||||
auto_tag: "true"
|
||||
ignore_missing: "true"
|
||||
spec: manifest.tmpl
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
- name: manifest-latest
|
||||
image: plugins/manifest
|
||||
settings:
|
||||
tags: latest
|
||||
ignore_missing: "true"
|
||||
spec: manifest.tmpl
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
|
||||
depends_on:
|
||||
- linux-amd64
|
||||
---
|
||||
kind: signature
|
||||
hmac: 17ba699e82ab418a0db23c707f56fe06961ce365aaf236266ec7cbfd2d900d87
|
||||
|
||||
...
|
|
@ -0,0 +1,20 @@
|
|||
when:
|
||||
event: [tag]
|
||||
ref: refs/tags/v*
|
||||
|
||||
steps:
|
||||
publish:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
group: docker
|
||||
settings:
|
||||
platforms: linux/amd64,linux/arm64/v8
|
||||
repo: gitea.dwysokinski.me/kichiyaki-packages/dwysokinski.me
|
||||
registry: gitea.dwysokinski.me
|
||||
auto_tag: true
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
build_args:
|
||||
- PLAUSIBLE_CUSTOM_DOMAIN=plausible.dwysokinski.me
|
||||
- PLAUSIBLE_SCRIPT_URI=/js/script.js
|
11
Dockerfile
11
Dockerfile
|
@ -1,11 +1,10 @@
|
|||
FROM node:14.21.3-alpine as builder
|
||||
FROM node:18.17-alpine as builder
|
||||
|
||||
ARG PLAUSIBLE_CUSTOM_DOMAIN=""
|
||||
ARG PLAUSIBLE_SCRIPT_URI=""
|
||||
|
||||
ENV PLAUSIBLE_CUSTOM_DOMAIN=$PLAUSIBLE_CUSTOM_DOMAIN \
|
||||
PLAUSIBLE_SCRIPT_URI=$PLAUSIBLE_SCRIPT_URI \
|
||||
NODE_ENV=production \
|
||||
GATSBY_TELEMETRY_DISABLED=1
|
||||
|
||||
RUN apk --no-cache add shadow \
|
||||
|
@ -21,14 +20,18 @@ RUN apk --no-cache add shadow \
|
|||
zlib \
|
||||
zlib-dev \
|
||||
file \
|
||||
pkgconf
|
||||
pkgconf \
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn
|
||||
|
||||
COPY . ./
|
||||
ENV NODE_ENV=production
|
||||
RUN yarn build
|
||||
|
||||
FROM nginx:1.23-alpine
|
||||
FROM nginx:1.25-alpine
|
||||
|
||||
COPY --from=builder /usr/src/app/public /var/www
|
||||
COPY default.conf /etc/nginx/templates/default.conf.template
|
||||
EXPOSE 80
|
||||
|
|
Loading…
Reference in New Issue