-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 1.03 KB
/
Copy pathpublish.yaml
File metadata and controls
38 lines (32 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: "DockerImages"
on:
push:
branches: [main]
pull_request:
jobs:
nix-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.0
with:
fetch-depth: 0
- uses: nixbuild/nix-quick-install-action@v25
with:
nix_conf: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v14
with:
name: zeek
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build workflow.desci Image
run: |
nix -Lv run .\#x86_64-linux.automation.containers.dev.copyToRegistry
- name: Push the workflow.default Docker image
run: |
# docker run -it -v "$(pwd):/work" --entrypoint /bin/bash ghcr.io/gtrunsec/workflow-template.default:latest
# docker push ghcr.io/gtrunsec/workflow-template.default:latest