moved to woodpecker ci
ci/woodpecker/push/woodpecker Pipeline failed Details

gin
Johannes Bülow 2023-08-03 11:13:56 +02:00
parent a0ec4e6629
commit e8e1b78464
Signed by untrusted user who does not match committer: jmb
GPG Key ID: B56971CF7B8F83A6
5 changed files with 50 additions and 5562 deletions

39
.woodpecker.yml Normal file
View File

@ -0,0 +1,39 @@
# Build and publish Docker images for multible architectures.
#
# Pushing an image to codeberg as container registry,
# package owner will be the repo owner.
#
# this config also shows usage of yaml aliases and
# was taken from https://codeberg.org/6543/docker-images/src/commit/37e29c227717c1c07d2776cddcf14725bf952875/.woodpecker/hello.yml
when:
branch: main
variables:
- &file Dockerfile
- &repo docker.io/jmbitci/www-jmbit-de
steps:
dryrun:
image: klakegg/hugo
commands:
- hugo --minify
when:
event: [ pull-request, push]
publish:
image: woodpeckerci/plugin-docker-buildx
settings:
dockerfile: *file
platforms: linux/arm64/v8,linux/amd64
repo: *repo
registry: docker.io
tags:
- latest
- ${CI_COMMIT_SHA}
username: jmbitci
password:
from_secret: dockerhub_token
when:
event: push

View File

@ -4,16 +4,15 @@ dev:
hugo: hugo:
hugo hugo
container: container:
podman build -t docker.io/jmbitci/www-jmbit-de:latest . podman build -t docker.io/jmbitci/www-jmbit-de:latest -t docker.io/jmbitci/www-jmbit-de:$(HEAD) .
podman build -t docker.io/jmbitci/www-jmbit-de:$(HEAD) .
publish: publish:
podman push docker.io/jmbitci/www-jmbit-de:latest podman push docker.io/jmbitci/www-jmbit-de:latest --all-tags
podman push docker.io/jmbitci/www-jmbit-de:$(HEAD)
nopub: hugo container nopub: hugo container
podman run --rm -p8080:80 docker.io/jmbitci/www-jmbit-de podman run --rm -p8080:80 docker.io/jmbitci/www-jmbit-de
rollout: #rollout:
kubectl --context=jmbit-prod rollout restart deployment www-jmbit-de -n jmbit-web # kubectl --context=jmbit-prod rollout restart deployment www-jmbit-de -n jmbit-web
clean: clean:
rm -rf public rm -rf public

File diff suppressed because it is too large Load Diff

View File

@ -1,38 +0,0 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: www-jmbit-de
namespace: jmbit-web
labels:
app: nginx-jmbit-www
spec:
replicas: 2
selector:
matchLabels:
app: nginx-jmbit-www
template:
metadata:
labels:
app: nginx-jmbit-www
spec:
containers:
- name: www-jmbit-de
image: docker.io/jmbitci/www-jmbit-de
imagePullPolicy: "Always"
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: www-jmbit-de-service
namespace: jmbit-web
spec:
ports:
- port: 80
targetPort: 80
name: tcp
selector:
app: nginx-jmbit-www

6
static/security.txt Normal file
View File

@ -0,0 +1,6 @@
Contact: mailto:security@jmbit.de
Expires: 2024-06-30T21:59:00.000Z
Encryption: https://www.jmbit.de/gpg.asc.txt
Preferred-Languages: en,de
Canonical: https://www.jmbit.de/security.txt