Compare commits
47 commits
Author | SHA1 | Date | |
---|---|---|---|
ff36ad0361 | |||
219f66626e | |||
4cef6c6db8 | |||
90725b45e2 | |||
42675a6e15 | |||
624f234e9a | |||
46bc879406 | |||
bf316cdf34 | |||
ffcc44af76 | |||
a416480c8e | |||
dda68de2ff | |||
337be3db07 | |||
a11fc5adb0 | |||
0854a250d8 | |||
4336235ce9 | |||
cb5356cc3d | |||
67baeba6f9 | |||
fe6282ebca | |||
576bdddddb | |||
e03158d599 | |||
9862c44df7 | |||
981db9649e | |||
d4f1c0e6f5 | |||
ac19c8313f | |||
8054b055e0 | |||
4f221e46e8 | |||
755a7d84cd | |||
b61939aadb | |||
0a33e0a7bc | |||
c3ef12d25c | |||
a0f9848933 | |||
e92a9fc4a6 | |||
4ed6d9133a | |||
329b0693e6 | |||
2f2cf72422 | |||
3a80394eea | |||
0b3a04450a | |||
9d88715925 | |||
54a7605081 | |||
6ef8c0df30 | |||
e2f6e4b643 | |||
e2662d3b75 | |||
cd95bfb8f9 | |||
b8d1240d42 | |||
4b5c53be43 | |||
4abb883f05 | |||
d8016be4e6 |
4 changed files with 29 additions and 24 deletions
|
@ -2,8 +2,8 @@ when:
|
||||||
- event: manual
|
- event: manual
|
||||||
- event: tag
|
- event: tag
|
||||||
|
|
||||||
#depends_on:
|
depends_on:
|
||||||
#- test
|
- test
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
npm:
|
npm:
|
||||||
|
@ -21,7 +21,10 @@ steps:
|
||||||
build_publish:
|
build_publish:
|
||||||
image: quay.io/podman/stable:latest
|
image: quay.io/podman/stable:latest
|
||||||
# Caution: This image is built daily. It might fill up your image store quickly.
|
# Caution: This image is built daily. It might fill up your image store quickly.
|
||||||
pull: true
|
#pull: true
|
||||||
|
volumes:
|
||||||
|
- containers:/var/lib/containers
|
||||||
|
- pnpm:/root/.local/share/pnpm
|
||||||
# Fill in the trusted checkbox in Woodpecker's settings as well
|
# Fill in the trusted checkbox in Woodpecker's settings as well
|
||||||
privileged: true
|
privileged: true
|
||||||
environment:
|
environment:
|
||||||
|
@ -34,22 +37,7 @@ steps:
|
||||||
# Login at the registry
|
# Login at the registry
|
||||||
- podman login -u __token__ --password $registry_token $registry
|
- podman login -u __token__ --password $registry_token $registry
|
||||||
# Build the container image
|
# Build the container image
|
||||||
- podman build --tag $registry/$org/$container_name:latest --tag $registry/$org/$container_name:$CI_COMMIT_SHA .
|
- podman build --volume=/var/lib/containers:/var/lib/containers --tag $registry/$org/$container_name:latest --tag $registry/$org/$container_name:$CI_COMMIT_TAG .
|
||||||
# Push the image
|
# Push the image
|
||||||
#- podman push --sign-by-sigstore-private-key ./key.private code.philo.ydns.eu/$org/$container_name:latest
|
|
||||||
- podman push $registry/$org/$container_name:latest
|
- podman push $registry/$org/$container_name:latest
|
||||||
- podman push $registry/$org/$container_name:$CI_COMMIT_SHA
|
- podman push $registry/$org/$container_name:$CI_COMMIT_TAG
|
||||||
|
|
||||||
# container_build_release_push:
|
|
||||||
# #image: docker.io/maltegrosse/woodpecker-buildah:0.0.12
|
|
||||||
# image: code.philo.ydns.eu/philorg/woodpecker-buildah
|
|
||||||
# settings:
|
|
||||||
# registry: code.philo.ydns.eu
|
|
||||||
# repository: philorg/test-woodpecker-webapp
|
|
||||||
# tags: ${CI_COMMIT_SHA}
|
|
||||||
# architectures: amd64
|
|
||||||
# context: Containerfile
|
|
||||||
# username:
|
|
||||||
# from_secret: registry_username
|
|
||||||
# password:
|
|
||||||
# from_secret: registry_password
|
|
||||||
|
|
15
.woodpecker/test.yaml
Normal file
15
.woodpecker/test.yaml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
when:
|
||||||
|
- event: manual
|
||||||
|
- event: tag
|
||||||
|
- event: push
|
||||||
|
|
||||||
|
steps:
|
||||||
|
npm:
|
||||||
|
image: code.philo.ydns.eu/philorg/pnpm
|
||||||
|
environment:
|
||||||
|
ORG: philorg
|
||||||
|
REGISTRY_TOKEN:
|
||||||
|
from_secret: registry_token
|
||||||
|
commands:
|
||||||
|
- pnpm install --frozen-lockfile
|
||||||
|
- pnpm run type-check
|
|
@ -1,5 +1,6 @@
|
||||||
# test-woodpecker-webapp
|
# test-woodpecker-webapp
|
||||||
|
|
||||||
[](https://code.philo.ydns.eu/woodpecker/repos/6)
|
[](https://code.philo.ydns.eu/woodpecker/repos/9)
|
||||||
|
|
||||||
|
This is a sandbox for building packages (npm and container) with Woodpecker CI.
|
||||||
|
|
||||||
This is a sansbox for building packages (npm and container) with Woodpecker CI.
|
|
|
@ -1,12 +1,13 @@
|
||||||
{
|
{
|
||||||
"name": "test-woodpecker-webapp",
|
"name": "test-woodpecker-webapp",
|
||||||
"version": "0.1.7",
|
"version": "0.5.17",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "run-p type-check \"build-only {@}\" --",
|
"build": "run-p type-check \"build-only {@}\" --",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"build-only": "vite build",
|
"build-only": "vite build",
|
||||||
"type-check": "vue-tsc --build"
|
"type-check": "vue-tsc --build",
|
||||||
|
"postversion": "git push && git push --tags"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"pinia": "^3.0.1",
|
"pinia": "^3.0.1",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue