Skip to content

ApeWorX/build-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Silverback Build Workflow

Automatically generate dockerfiles (unless already committed), build docker images and push those images to a configured container registry like GHCR

Outputs

build_images

The images that are built and pushed by the workflow

Example Usage

To push to a ghcr registry:

jobs:
  your-action:
    name: Run action
    runs-on: ubuntu-latest
    permissions:
      contents: read
      packages: write
      id-token: write
    steps:
      - uses: actions/checkout@v4

      - name: Build Image
        uses: ApeWorX/build-action@v1
        with:
            push: true
            tag: v1.0.0
            registry: ghcr.io
            username: ${{ github.actor }}
            password: ${{ secrets.GITHUB_TOKEN }}

To push with a different tag:

jobs:
  your-action:
    name: Run action
    runs-on: ubuntu-latest
    permissions:
      contents: read
      packages: write
      id-token: write
    steps:
      - uses: actions/checkout@v4

      - name: Build Image
        uses: ApeWorX/build-action@v1
        with:
            push: true
            tag: v1.0.0
            registry: ghcr.io
            username: ${{ github.actor }}
            password: ${{ secrets.GITHUB_TOKEN }}

To just test the build:

jobs:
  your-action:
    name: Run action
    runs-on: ubuntu-latest
    permissions:
      contents: read
    steps:

      - uses: actions/checkout@v4

      - name: Build Image
        uses: ApeWorX/build-action@v1

Packages

No packages published

Contributors 2

  •  
  •