diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml index d27e585..d94ef01 100644 --- a/.woodpecker/build.yaml +++ b/.woodpecker/build.yaml @@ -2,8 +2,8 @@ when: - event: manual - event: tag -#depends_on: - #- test +depends_on: + - test steps: npm: @@ -21,7 +21,10 @@ steps: build_publish: image: quay.io/podman/stable:latest # 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 privileged: true environment: @@ -34,22 +37,7 @@ steps: # Login at the registry - podman login -u __token__ --password $registry_token $registry # Build the container image - - podman build --volume=/var/lib/agent-containers:/var/lib/containers:Z --tag $registry/$org/$container_name:latest --tag $registry/$org/$container_name:$CI_COMMIT_TAG . + - 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 - #- 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:$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 diff --git a/.woodpecker/test.yaml b/.woodpecker/test.yaml new file mode 100644 index 0000000..e81a47d --- /dev/null +++ b/.woodpecker/test.yaml @@ -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 diff --git a/README.md b/README.md index 96f1981..e375002 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # test-woodpecker-webapp -[![status-badge](https://code.philo.ydns.eu/woodpecker/api/badges/6/status.svg)](https://code.philo.ydns.eu/woodpecker/repos/6) +[![status-badge](https://code.philo.ydns.eu/woodpecker/api/badges/9/status.svg)](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. \ No newline at end of file diff --git a/package.json b/package.json index 82e7c61..4ab4e2d 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,13 @@ { "name": "test-woodpecker-webapp", - "version": "0.1.8", + "version": "0.5.17", "scripts": { "dev": "vite", "build": "run-p type-check \"build-only {@}\" --", "preview": "vite preview", "build-only": "vite build", - "type-check": "vue-tsc --build" + "type-check": "vue-tsc --build", + "postversion": "git push && git push --tags" }, "dependencies": { "pinia": "^3.0.1",