builds.sr.ht ci
This commit is contained in:
33
.builds/14.yaml
Normal file
33
.builds/14.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
image: debian/bookworm
|
||||
|
||||
secrets:
|
||||
- a19cbc4c-b6a1-414e-bf1c-1e06abc684eb
|
||||
|
||||
tasks:
|
||||
- print-env: |
|
||||
echo "$JOB_ID"
|
||||
echo "$JOB_URL"
|
||||
echo "$BUILD_SUBMITTER"
|
||||
echo "$BUILD_REASON"
|
||||
echo "$GIT_REF"
|
||||
- setup-env: |
|
||||
sudo timedatectl set-timezone America/Denver
|
||||
echo "SLUG=ghcr.io/cwpearson/clang-format-14" >> ~/.buildenv
|
||||
echo "DATE=$(date +"%Y%m%d_%H%M")" >> ~/.buildenv
|
||||
- prerequisites: |
|
||||
bash clang-format/.ci/debian_setup_docker.sh
|
||||
- build: |
|
||||
cd clang-format
|
||||
docker build . --file clang-format-14.dockerfile --tag "$SLUG:$DATE" --tag "$SLUG:latest"
|
||||
- deploy: |
|
||||
if [ "$GIT_REF" != "refs/heads/master" ]; then exit 0; fi
|
||||
set +x
|
||||
cat ~/.ghcr_token | docker login ghcr.io -u cwpearson --password-stdin
|
||||
set -x
|
||||
docker push "$SLUG:latest"
|
||||
docker push "$SLUG:$DATE"
|
||||
|
||||
triggers:
|
||||
- action: email
|
||||
condition: failure
|
||||
to: Carl Pearson <srht@carlpearson.net>
|
33
.builds/16.yaml
Normal file
33
.builds/16.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
image: debian/bookworm
|
||||
|
||||
secrets:
|
||||
- a19cbc4c-b6a1-414e-bf1c-1e06abc684eb
|
||||
|
||||
tasks:
|
||||
- print-env: |
|
||||
echo "$JOB_ID"
|
||||
echo "$JOB_URL"
|
||||
echo "$BUILD_SUBMITTER"
|
||||
echo "$BUILD_REASON"
|
||||
echo "$GIT_REF"
|
||||
- setup-env: |
|
||||
sudo timedatectl set-timezone America/Denver
|
||||
echo "SLUG=ghcr.io/cwpearson/clang-format-16" >> ~/.buildenv
|
||||
echo "DATE=$(date +"%Y%m%d_%H%M")" >> ~/.buildenv
|
||||
- prerequisites: |
|
||||
bash clang-format/.ci/debian_setup_docker.sh
|
||||
- build: |
|
||||
cd clang-format
|
||||
docker build . --file clang-format-16.dockerfile --tag "$SLUG:$DATE" --tag "$SLUG:latest"
|
||||
- deploy: |
|
||||
if [ "$GIT_REF" != "refs/heads/master" ]; then exit 0; fi
|
||||
set +x
|
||||
cat ~/.ghcr_token | docker login ghcr.io -u cwpearson --password-stdin
|
||||
set -x
|
||||
docker push "$SLUG:latest"
|
||||
docker push "$SLUG:$DATE"
|
||||
|
||||
triggers:
|
||||
- action: email
|
||||
condition: failure
|
||||
to: Carl Pearson <srht@carlpearson.net>
|
33
.builds/8.yaml
Normal file
33
.builds/8.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
image: debian/bookworm
|
||||
|
||||
secrets:
|
||||
- a19cbc4c-b6a1-414e-bf1c-1e06abc684eb
|
||||
|
||||
tasks:
|
||||
- print-env: |
|
||||
echo "$JOB_ID"
|
||||
echo "$JOB_URL"
|
||||
echo "$BUILD_SUBMITTER"
|
||||
echo "$BUILD_REASON"
|
||||
echo "$GIT_REF"
|
||||
- setup-env: |
|
||||
sudo timedatectl set-timezone America/Denver
|
||||
echo "SLUG=ghcr.io/cwpearson/clang-format-8" >> ~/.buildenv
|
||||
echo "DATE=$(date +"%Y%m%d_%H%M")" >> ~/.buildenv
|
||||
- prerequisites: |
|
||||
bash clang-format/.ci/debian_setup_docker.sh
|
||||
- build: |
|
||||
cd clang-format
|
||||
docker build . --file clang-format-8.dockerfile --tag "$SLUG:$DATE" --tag "$SLUG:latest"
|
||||
- deploy: |
|
||||
if [ "$GIT_REF" != "refs/heads/master" ]; then exit 0; fi
|
||||
set +x
|
||||
cat ~/.ghcr_token | docker login ghcr.io -u cwpearson --password-stdin
|
||||
set -x
|
||||
docker push "$SLUG:latest"
|
||||
docker push "$SLUG:$DATE"
|
||||
|
||||
triggers:
|
||||
- action: email
|
||||
condition: failure
|
||||
to: Carl Pearson <srht@carlpearson.net>
|
Reference in New Issue
Block a user