diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml index d94ef01..fb5ab00 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,10 +21,7 @@ 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 - volumes: - - containers:/var/lib/containers - - pnpm:/root/.local/share/pnpm + pull: true # Fill in the trusted checkbox in Woodpecker's settings as well privileged: true environment: @@ -37,7 +34,22 @@ steps: # Login at the registry - podman login -u __token__ --password $registry_token $registry # Build the container image - - podman build --volume=/var/lib/containers:/var/lib/containers --tag $registry/$org/$container_name:latest --tag $registry/$org/$container_name:$CI_COMMIT_TAG . + - podman build --tag $registry/$org/$container_name:latest --tag $registry/$org/$container_name:$CI_COMMIT_SHA . # 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 + - podman push $registry/$org/$container_name:$CI_COMMIT_SHA + + # 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 deleted file mode 100644 index e81a47d..0000000 --- a/.woodpecker/test.yaml +++ /dev/null @@ -1,15 +0,0 @@ -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 e375002..96f1981 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # test-woodpecker-webapp -[![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. +[![status-badge](https://code.philo.ydns.eu/woodpecker/api/badges/6/status.svg)](https://code.philo.ydns.eu/woodpecker/repos/6) +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 4ab4e2d..4a0b7f3 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,12 @@ { "name": "test-woodpecker-webapp", - "version": "0.5.17", + "version": "0.1.7", "scripts": { "dev": "vite", "build": "run-p type-check \"build-only {@}\" --", "preview": "vite preview", "build-only": "vite build", - "type-check": "vue-tsc --build", - "postversion": "git push && git push --tags" + "type-check": "vue-tsc --build" }, "dependencies": { "pinia": "^3.0.1",