add target for master

This commit is contained in:
2025-04-23 14:44:14 +02:00
parent 6c1da900c4
commit 12a3ef746d

View File

@@ -24,6 +24,34 @@ steps:
# Check syntax for all files as a safety net
- find . -type f \( -iname "*.xhtml" -o -iname "*.xml" -o -iname "*.xsl" \) -exec xmllint --noout {} +
- name: deploy-master
image: docker:27.4.1
environment:
# Environment variables necessary for rootless Docker
XDG_RUNTIME_DIR: "/run/user/1001"
DOCKER_HOST: "unix:///run/user/1001/docker.sock"
# Target bunsen directly, and use ipv4 proxies for noddack and gahn, as ipv6 broken.
TARGET: "www@bunsen.fsfeurope.org:fsfe.org/global/,www@proxy.noris.fsfeurope.org:fsfe.org/global/?10322,www@proxy.plutex.fsfeurope.org:fsfe.org/global/?10322"
KEY_PRIVATE:
from_secret: KEY_PRIVATE
KEY_PASSWORD:
from_secret: KEY_PASSWORD
GIT_TOKEN:
from_secret: BUILD_TOKEN
volumes:
# Mounting Docker socket of rootless docker user
- name: dockersock
path: /run/user/1001/docker.sock
commands:
- docker ps && echo "tampered with"
- docker compose -p fsfe-website run --remove-orphans --build build --target "$TARGET"
when:
branch:
- master
event:
exclude:
- pull_request
- name: deploy-test
image: docker:27.4.1
environment: