alertmanager-ntfy/.forgejo/workflows/build.yaml.inactive

42 lines
1.1 KiB
Text
Raw Normal View History

2024-08-11 19:02:39 +00:00
name: Image Build
on:
workflow_dispatch:
2024-08-11 19:31:36 +00:00
push:
2024-08-11 19:02:39 +00:00
jobs:
prepare:
name: Prepare to Build
runs-on: ubuntu-latest-docker
container:
image: node:22
2024-08-11 19:02:39 +00:00
steps:
2024-08-11 19:29:26 +00:00
- name: Install deps
2024-08-11 19:29:55 +00:00
run: apt update && apt -y install sudo
2024-08-11 19:26:56 +00:00
- uses: actions/checkout@v4
# - name: Install Nix
# uses: https://github.com/DeterminateSystems/nix-installer-action@v12
2024-08-11 19:26:56 +00:00
- name: Install Nix
uses: https://github.com/cachix/install-nix-action@v27
# with:
with:
nix_path: nixpkgs=channel:nixos-unstable
2024-08-11 19:43:54 +00:00
- name: Run the Magic Nix Cache
2024-08-11 19:45:19 +00:00
uses: https://github.com/DeterminateSystems/magic-nix-cache-action@v7
2024-08-11 19:26:56 +00:00
- name: Build release
2024-08-11 19:37:23 +00:00
run: nix build .#container --impure
2024-08-12 16:59:23 +00:00
- name: list
run: ls .
- name: push
run: docker load < result
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: code.252.no
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name:
run: |
docker tag alertmanager-ntfy:1.0.0 code.252.no/tommy/alertmanager-ntfy:1.0.0
docker push alertmanager-ntfy:1.0.0