-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from NiNiyas/alpha
- Loading branch information
Showing
37 changed files
with
1,327 additions
and
1,176 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
name: Build and Push to GHCR | ||
|
||
on: | ||
workflow_dispatch: | ||
repository_dispatch: | ||
types: [Build and Push to GHCR] | ||
workflow_dispatch: ~ | ||
push: | ||
branches: | ||
- master | ||
|
@@ -13,32 +11,32 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get Short SHA | ||
uses: benjlevesque/short-sha@v2.2 | ||
uses: benjlevesque/short-sha@v3.0 | ||
id: short-sha | ||
with: | ||
length: 7 | ||
|
||
- name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].7 | ||
|
||
- name: Log into GHCR | ||
run: echo "${{ secrets.GIT_TOKEN }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3.0.0 | ||
uses: docker/setup-qemu-action@v3.1.0 | ||
with: | ||
image: tonistiigi/binfmt:latest | ||
platforms: all | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3.0.0 | ||
uses: docker/setup-buildx-action@v3.4.0 | ||
with: | ||
install: true | ||
version: latest | ||
driver-opts: image=moby/buildkit:master | ||
|
||
- name: Build and push amd64 | ||
uses: docker/build-push-action@v5.1.0 | ||
uses: docker/build-push-action@v6.3.0 | ||
with: | ||
context: ./ | ||
file: ./Dockerfile | ||
|
@@ -49,11 +47,10 @@ jobs: | |
ghcr.io/${{ secrets.GIT_USER }}/autoscan:amd64_commit-${{ steps.short-sha.outputs.sha }} | ||
platforms: linux/amd64 | ||
build-args: | | ||
OVERLAY_ARCH=amd64 | ||
ARCH=amd64 | ||
OVERLAY_ARCH=x86_64 | ||
- name: Build and push aarch64 | ||
uses: docker/build-push-action@v5.1.0 | ||
uses: docker/build-push-action@v6.3.0 | ||
with: | ||
context: ./ | ||
file: ./Dockerfile | ||
|
@@ -65,7 +62,6 @@ jobs: | |
platforms: linux/arm64 | ||
build-args: | | ||
OVERLAY_ARCH=aarch64 | ||
ARCH=arm64 | ||
- name: Create and push manifest images | ||
uses: Noelware/docker-manifest-action@master | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
default_language_version: | ||
python: python3.12 | ||
|
||
repos: | ||
- repo: https://github.com/psf/black-pre-commit-mirror | ||
rev: 24.4.2 | ||
hooks: | ||
- id: black | ||
language_version: python3.12 | ||
description: "Black: The uncompromising Python code formatter" | ||
entry: black | ||
language: python |
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
Oops, something went wrong.