add forgejo action
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jeffrey C. Ollie 2023-08-27 11:26:08 -05:00
parent e386eb1b63
commit 09198b2653
Signed by: jeff
GPG key ID: 6F86035A6D97044E

View 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}"