Skip to content

Attempt to prevent false positive detections by Windows Defender #38

Attempt to prevent false positive detections by Windows Defender

Attempt to prevent false positive detections by Windows Defender #38

Workflow file for this run

name: Container
on:
# Do not enable default branch and path in push triggers, use workflow_dispatch for heavy run
push:
tags:
- 'v*'
pull_request:
paths:
- '.github/workflows/container.yml'
- 'Containerfile'
- 'flake.nix'
schedule:
# Every 13:42 JST
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: '42 4 * * *'
workflow_dispatch:
jobs:
build_and_push:
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Build Image
id: build-image
uses: redhat-actions/[email protected]
with:
image: home
tags: latest ${{ github.sha }}
containerfiles: |
Containerfile
oci: true
- name: Push To ghcr.io
id: push-to-ghcr
if: ${{ github.event_name != 'pull_request' }}
uses: redhat-actions/[email protected]
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ghcr.io/${{ github.repository_owner }}
username: kachick
password: ${{ github.token }}
- name: Log pushed outputs
run: echo "${{ toJSON(steps.push-to-ghcr.outputs) }}"