Skip to content

fix: debug statement compilation #35

fix: debug statement compilation

fix: debug statement compilation #35

Workflow file for this run

name: "CI"
on:
pull_request:
push:
create:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build_and_publish:
runs-on: self-hosted
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v20
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
system-features = nixos-test benchmark big-parallel kvm
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix build -L '.#packages.x86_64-linux."static-x86_64-unknown-linux-musl:github-action-scan:exe:github-action-scan"'
- run: nix flake check
- name: Extract tag name
shell: bash
run: echo "tag=$(echo ${GITHUB_REF##*/})" >> $GITHUB_OUTPUT
id: extract_tag
- run: nix build -L '.#packages.x86_64-linux.github-action-scan-image'
- run: docker load -i result
- name: Log in to the Container registry
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: docker tag blackheaven/haskell-security-action ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.extract_tag.outputs.tag }}
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')
- run: docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.extract_tag.outputs.tag }}
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')