diff --git a/.gitea/workflows/container.yaml b/.gitea/workflows/container.yaml deleted file mode 100644 index e48b3fd..0000000 --- a/.gitea/workflows/container.yaml +++ /dev/null @@ -1,12 +0,0 @@ -name: Build Multiarch Container Image -on: [push] -jobs: - call-reusable-workflow: - uses: container/multiarch-build-workflow/.gitea/workflows/build.yaml@main - with: - repository: ${{ gitea.repository }} - ref_name: ${{ gitea.ref_name }} - sha: ${{ gitea.sha }} - registry_url: ${{ secrets.REGISTRY_URL }} - registry_user: ${{ secrets.REGISTRY_USER }} - registry_pw: ${{ secrets.REGISTRY_PW }} diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..c92c5fb --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,11 @@ +pipeline: + publish-docker-image: + image: plugins/kaniko + settings: + repo: docker.io/thallian/matrix-synapse + tags: latest,${CI_COMMIT_SHA:0:8},${CI_COMMIT_TAG=pre} + dockerfile: Dockerfile + username: + from_secret: DOCKER_USER + password: + from_secret: DOCKER_PW \ No newline at end of file diff --git a/Containerfile b/Dockerfile similarity index 65% rename from Containerfile rename to Dockerfile index 04a6770..36c488f 100644 --- a/Containerfile +++ b/Dockerfile @@ -1,28 +1,21 @@ -FROM docker.io/alpine:3.19 AS builder +FROM docker.io/alpine:3.17 AS builder + +ENV VERSION=v1.84.1 RUN apk add --no-cache \ alpine-sdk \ python3-dev \ py3-pip \ - py3-wheel \ + py3-wheel \ libffi-dev \ openssl-dev \ zlib-dev \ jpeg-dev \ - rust \ - poetry \ - git + rust -ENV VERSION=v1.103.0 -RUN git clone https://github.com/element-hq/synapse.git -WORKDIR /synapse -RUN git checkout $VERSION +RUN pip3 install --target="/install" matrix-synapse==$VERSION -RUN poetry export -o /synapse/requirements.txt -RUN pip3 install --target="/install" -r /synapse/requirements.txt - - -FROM docker.io/thallian/confd-env:3.19-3.1.6.2 +FROM docker.io/thallian/confd-env:3.17-3.1.3.0 RUN addgroup -g 2222 matrix-synapse RUN adduser -h /var/lib/matrix-synapse -u 2222 -D -G matrix-synapse matrix-synapse