diff --git a/.woodpecker/build-almalinux8.yaml b/.woodpecker/build-almalinux8.yaml index c659503..0ae34c7 100644 --- a/.woodpecker/build-almalinux8.yaml +++ b/.woodpecker/build-almalinux8.yaml @@ -7,7 +7,6 @@ steps: commands: - mkdir -p /woodpecker/rpms - ln -s /woodpecker/rpms /workspace - - dnf install buildah -y - ./tools/build build-all --distro almalinux/el8 --buildah privileged: true backend_options: diff --git a/.woodpecker/build-almalinux9.yaml b/.woodpecker/build-almalinux9.yaml index feda181..957dd9f 100644 --- a/.woodpecker/build-almalinux9.yaml +++ b/.woodpecker/build-almalinux9.yaml @@ -7,7 +7,6 @@ steps: commands: - mkdir -p /woodpecker/rpms - ln -s /woodpecker/rpms /workspace - - dnf install buildah -y - ./tools/build build-all --distro almalinux/el9 --buildah privileged: true backend_options: diff --git a/.woodpecker/build-fedora42.yaml b/.woodpecker/build-fedora42.yaml new file mode 100644 index 0000000..a9ade07 --- /dev/null +++ b/.woodpecker/build-fedora42.yaml @@ -0,0 +1,26 @@ +when: + - event: pull_request + +steps: + - name: build rpms + image: git.unkin.net/unkin/fedora42-rpmbuilder:latest + commands: + - mkdir -p /woodpecker/rpms + - ln -s /woodpecker/rpms /workspace + - ./tools/build build-all --distro fedora/42 --buildah + privileged: true + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 512Mi + cpu: 1 + limits: + memory: 2Gi + cpu: 2 + + - name: show rpms + image: git.unkin.net/unkin/fedora42-base:latest + commands: + - find /woodpecker/src/git.unkin.net/unkin/rpmbuilder/ -type f -name "*.rpm" diff --git a/.woodpecker/build-fedora43.yaml b/.woodpecker/build-fedora43.yaml new file mode 100644 index 0000000..2f7ad60 --- /dev/null +++ b/.woodpecker/build-fedora43.yaml @@ -0,0 +1,26 @@ +when: + - event: pull_request + +steps: + - name: build rpms + image: git.unkin.net/unkin/fedora43-rpmbuilder:latest + commands: + - mkdir -p /woodpecker/rpms + - ln -s /woodpecker/rpms /workspace + - ./tools/build build-all --distro fedora/43 --buildah + privileged: true + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 512Mi + cpu: 1 + limits: + memory: 2Gi + cpu: 2 + + - name: show rpms + image: git.unkin.net/unkin/fedora43-base:latest + commands: + - find /woodpecker/src/git.unkin.net/unkin/rpmbuilder/ -type f -name "*.rpm" diff --git a/.woodpecker/build-fedora44.yaml b/.woodpecker/build-fedora44.yaml new file mode 100644 index 0000000..db4fde7 --- /dev/null +++ b/.woodpecker/build-fedora44.yaml @@ -0,0 +1,26 @@ +when: + - event: pull_request + +steps: + - name: build rpms + image: git.unkin.net/unkin/fedora44-rpmbuilder:latest + commands: + - mkdir -p /woodpecker/rpms + - ln -s /woodpecker/rpms /workspace + - ./tools/build build-all --distro fedora/44 --buildah + privileged: true + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 512Mi + cpu: 1 + limits: + memory: 2Gi + cpu: 2 + + - name: show rpms + image: git.unkin.net/unkin/fedora44-base:latest + commands: + - find /woodpecker/src/git.unkin.net/unkin/rpmbuilder/ -type f -name "*.rpm" diff --git a/.woodpecker/deploy-almalinux8.yaml b/.woodpecker/deploy-almalinux8.yaml index ca9bf26..26de4fe 100644 --- a/.woodpecker/deploy-almalinux8.yaml +++ b/.woodpecker/deploy-almalinux8.yaml @@ -8,7 +8,6 @@ steps: commands: - mkdir -p /woodpecker/rpms - ln -s /woodpecker/rpms /workspace - - dnf install buildah -y - ./tools/build build-all --distro almalinux/el8 --buildah privileged: true backend_options: diff --git a/.woodpecker/deploy-almalinux9.yaml b/.woodpecker/deploy-almalinux9.yaml index a11c57a..9b4d89a 100644 --- a/.woodpecker/deploy-almalinux9.yaml +++ b/.woodpecker/deploy-almalinux9.yaml @@ -8,7 +8,6 @@ steps: commands: - mkdir -p /woodpecker/rpms - ln -s /woodpecker/rpms /workspace - - dnf install buildah -y - ./tools/build build-all --distro almalinux/el9 --buildah privileged: true backend_options: diff --git a/.woodpecker/deploy-fedora42.yaml b/.woodpecker/deploy-fedora42.yaml new file mode 100644 index 0000000..bc38fd1 --- /dev/null +++ b/.woodpecker/deploy-fedora42.yaml @@ -0,0 +1,50 @@ +when: + - event: push + branch: master + +steps: + - name: build-rpms + image: git.unkin.net/unkin/fedora42-rpmbuilder:latest + commands: + - mkdir -p /woodpecker/rpms + - ln -s /woodpecker/rpms /workspace + - ./tools/build build-all --distro fedora/42 --buildah + privileged: true + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 512Mi + cpu: 1 + limits: + memory: 2Gi + cpu: 2 + + - name: show-rpms + image: git.unkin.net/unkin/fedora42-rpmbuilder:latest + commands: + - find /woodpecker/src/git.unkin.net/unkin/rpmbuilder/ -type f -name "*.rpm" + depends_on: [build-rpms] + + - name: deploy-rpms + image: git.unkin.net/unkin/fedora42-rpmbuilder:latest + commands: + - | + for rpm in $(find /woodpecker/src/git.unkin.net/unkin/rpmbuilder/ -type f -name "*.rpm"); do + curl --user droneci:$${DRONECI_PASSWORD} --upload-file $rpm https://git.unkin.net/api/packages/unkin/rpm/fedora/42/upload + done + environment: + DRONECI_PASSWORD: + from_secret: DRONECI_PASSWORD + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 128Mi + cpu: 100m + limits: + memory: 512Mi + cpu: 500m + depends_on: [build-rpms, show-rpms] diff --git a/.woodpecker/deploy-fedora43.yaml b/.woodpecker/deploy-fedora43.yaml new file mode 100644 index 0000000..0524980 --- /dev/null +++ b/.woodpecker/deploy-fedora43.yaml @@ -0,0 +1,50 @@ +when: + - event: push + branch: master + +steps: + - name: build-rpms + image: git.unkin.net/unkin/fedora43-rpmbuilder:latest + commands: + - mkdir -p /woodpecker/rpms + - ln -s /woodpecker/rpms /workspace + - ./tools/build build-all --distro fedora/43 --buildah + privileged: true + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 512Mi + cpu: 1 + limits: + memory: 2Gi + cpu: 2 + + - name: show-rpms + image: git.unkin.net/unkin/fedora43-rpmbuilder:latest + commands: + - find /woodpecker/src/git.unkin.net/unkin/rpmbuilder/ -type f -name "*.rpm" + depends_on: [build-rpms] + + - name: deploy-rpms + image: git.unkin.net/unkin/fedora43-rpmbuilder:latest + commands: + - | + for rpm in $(find /woodpecker/src/git.unkin.net/unkin/rpmbuilder/ -type f -name "*.rpm"); do + curl --user droneci:$${DRONECI_PASSWORD} --upload-file $rpm https://git.unkin.net/api/packages/unkin/rpm/fedora/43/upload + done + environment: + DRONECI_PASSWORD: + from_secret: DRONECI_PASSWORD + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 128Mi + cpu: 100m + limits: + memory: 512Mi + cpu: 500m + depends_on: [build-rpms, show-rpms] diff --git a/.woodpecker/deploy-fedora44.yaml b/.woodpecker/deploy-fedora44.yaml new file mode 100644 index 0000000..666b891 --- /dev/null +++ b/.woodpecker/deploy-fedora44.yaml @@ -0,0 +1,50 @@ +when: + - event: push + branch: master + +steps: + - name: build-rpms + image: git.unkin.net/unkin/fedora44-rpmbuilder:latest + commands: + - mkdir -p /woodpecker/rpms + - ln -s /woodpecker/rpms /workspace + - ./tools/build build-all --distro fedora/44 --buildah + privileged: true + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 512Mi + cpu: 1 + limits: + memory: 2Gi + cpu: 2 + + - name: show-rpms + image: git.unkin.net/unkin/fedora44-rpmbuilder:latest + commands: + - find /woodpecker/src/git.unkin.net/unkin/rpmbuilder/ -type f -name "*.rpm" + depends_on: [build-rpms] + + - name: deploy-rpms + image: git.unkin.net/unkin/fedora44-rpmbuilder:latest + commands: + - | + for rpm in $(find /woodpecker/src/git.unkin.net/unkin/rpmbuilder/ -type f -name "*.rpm"); do + curl --user droneci:$${DRONECI_PASSWORD} --upload-file $rpm https://git.unkin.net/api/packages/unkin/rpm/fedora/44/upload + done + environment: + DRONECI_PASSWORD: + from_secret: DRONECI_PASSWORD + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 128Mi + cpu: 100m + limits: + memory: 512Mi + cpu: 500m + depends_on: [build-rpms, show-rpms]