This commit is contained in:
parent
e386eb1b63
commit
09198b2653
1 changed files with 43 additions and 0 deletions
43
.forgejo/workflows/build.yaml
Normal file
43
.forgejo/workflows/build.yaml
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
name: build healthchecks
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: nixos-nix-latest
|
||||||
|
# env:
|
||||||
|
# REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
|
||||||
|
# REPOSITORY: ${{ secrets.DOCKER_REPOSITORY }}
|
||||||
|
# USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
# PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- nix build -L .#webserver
|
||||||
|
- push-container result --repository healthchecks/webserver
|
||||||
|
- nix build -L .#smtpd
|
||||||
|
- push-container result --repository healthchecks/smtpd
|
||||||
|
- nix build -L .#sendalerts
|
||||||
|
- push-container result --repository healthchecks/sendalerts
|
||||||
|
- nix build -L .#sendreports
|
||||||
|
- push-container result --repository healthchecks/sendreports
|
||||||
|
- nix build -L .#maintenance
|
||||||
|
- push-container result --repository healthchecks/maintenance
|
||||||
|
- nix build -L .#migrate
|
||||||
|
- push-container result --repository healthchecks/migrate
|
||||||
|
- nix build -L .#static
|
||||||
|
- push-container result --repository healthchecks/static
|
||||||
|
|
||||||
|
# - run: nix build -L .#default
|
||||||
|
# - run: echo -n "${PASSWORD}" | podman login --username "${USERNAME}" --password-stdin "${REGISTRY}"
|
||||||
|
# - run: podman load --input result | sed -n -e "s/Loaded image:.\\(.*\\)/loaded-image=\\1/p" >> $GITHUB_OUTPUT
|
||||||
|
# id: podman-load-image
|
||||||
|
# - run: podman images
|
||||||
|
# - run: podman tag "${IMAGE}" "${REGISTRY}/${REPOSITORY}:${GITHUB_RUN_NUMBER}-${GITHUB_SHA:0:8}"
|
||||||
|
# env:
|
||||||
|
# IMAGE: ${{ steps.podman-load-image.outputs.loaded-image }}
|
||||||
|
# - run: podman tag "${IMAGE}" "${REGISTRY}/${REPOSITORY}:latest"
|
||||||
|
# env:
|
||||||
|
# IMAGE: ${{ steps.podman-load-image.outputs.loaded-image }}
|
||||||
|
# - run: podman images
|
||||||
|
# - run: podman push "${REGISTRY}/${REPOSITORY}:${GITHUB_RUN_NUMBER}-${GITHUB_SHA:0:8}"
|
||||||
|
# - run: podman push "${REGISTRY}/${REPOSITORY}:latest"
|
||||||
|
# - run: podman logout "${REGISTRY}"
|
Loading…
Reference in a new issue