Skip to content

Commit

Permalink
update document
Browse files Browse the repository at this point in the history
  • Loading branch information
aleskxyz authored Mar 29, 2024
1 parent 1725e6c commit a11503a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
33 changes: 16 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,27 +40,26 @@ This is a composite GitHub Action that incorporates the following actions:

```yaml
name: Build image and Push to Github Container Registry

on:
push:

jobs:
build-push-ghcr:
name: Build and push image
runs-on: ubuntu-22.04

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build and Push Docker image to GHCR
uses: aleskxyz/build-push@v1
with:
image_name: ${{ github.event.repository.name }}
registry_address: ghcr.io/${{ github.repository_owner }}
registry_username: ${{ github.actor }}
registry_password: ${{ github.token }}
oci: true
push_extra_args: |
--disable-content-trust
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and Push Docker image to GHCR
uses: aleskxyz/build-push@main
with:
image_name: ${{ github.event.repository.name }}
registry_address: ghcr.io/${{ github.repository_owner }}
registry_username: ${{ github.actor }}
registry_password: ${{ github.token }}
oci: true
push_extra_args: |
--disable-content-trust
```
2 changes: 1 addition & 1 deletion setup_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ missing_packages=false
echo "::group::Checking Package Installation"
for pkg in "${packages[@]}"; do
if ! dpkg -s "$pkg" &> /dev/null; then
echo "::warning::Package $pkg is not installed."
echo "::notice::Package $pkg is not installed."
missing_packages=true
else
echo "Package $pkg is already installed."
Expand Down

0 comments on commit a11503a

Please sign in to comment.