Attempt to prevent false positive detections by Windows Defender #31
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) }}" |