generated from ublue-os/image-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and rename build.yml to image_build.yml
Code clean
- Loading branch information
1 parent
d6f7aa9
commit efe6c15
Showing
1 changed file
with
5 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
--- | ||
name: build-ublue-custom | ||
name: Build-image | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: '05 10 * * 1' # 10:05am UTC everyday | ||
- cron: '05 10 * * 1' # 10:05am UTC week on Monday | ||
push: | ||
branches: | ||
- main | ||
|
@@ -14,10 +14,10 @@ on: | |
workflow_dispatch: | ||
|
||
env: | ||
MY_IMAGE_NAME: "${{ github.event.repository.name }}" # the name of the image produced by this build, matches repo names | ||
MY_IMAGE_NAME: "${{ github.event.repository.name }}" # The name of the image | ||
MY_IMAGE_DESC: "A custom image designed for school and work environments" | ||
IMAGE_REGISTRY: "ghcr.io/${{ github.repository_owner }}" # do not edit | ||
|
||
IMAGE_REGISTRY: "ghcr.io/${{ github.repository_owner }}" | ||
jobs: | ||
build_push: | ||
name: Build and push image | ||
|
@@ -132,11 +132,6 @@ jobs: | |
extra-args: | | ||
--disable-content-trust | ||
# This section is optional and only needs to be enabled in you plan on distributing | ||
# your project to others to consume. You will need to create a public and private key | ||
# using Cosign and save the private key as a repository secret in Github for this workflow | ||
# to consume. For more details, review the image signing section of the README. | ||
|
||
# Sign container | ||
- uses: sigstore/[email protected] | ||
if: github.event_name != 'pull_request' | ||
|