feat: build multiple image
This commit is contained in:
40
.github/workflows/ci.yaml
vendored
40
.github/workflows/ci.yaml
vendored
@@ -10,20 +10,34 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build
|
||||
uses: redhat-actions/buildah-build@v2
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
image: ${{ github.actor }}/${{ github.event.repository.name }}
|
||||
tags: ${{ github.ref_name }}
|
||||
containerfiles: |
|
||||
./Containerfile
|
||||
- name: Push
|
||||
uses: redhat-actions/push-to-registry@v2
|
||||
with:
|
||||
image: ${{ github.actor }}/${{ github.event.repository.name }}
|
||||
tags: ${{ github.ref_name }}
|
||||
extra-args: --compression-format zstd:chunked
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Build and push base container
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./containers/base
|
||||
file: ./containers/base/Containerfile
|
||||
push: true
|
||||
tags: ghcr.io/${{ github.actor }}/base:latest
|
||||
- name: Build and push go container
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./containers/go
|
||||
file: ./containers/go/Containerfile
|
||||
push: true
|
||||
tags: ghcr.io/${{ github.actor }}/go:latest
|
||||
- name: Build and push kube container
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./containers/kube
|
||||
file: ./containers/kube/Containerfile
|
||||
push: true
|
||||
tags: ghcr.io/${{ github.actor }}/kube:latest
|
||||
|
||||
Reference in New Issue
Block a user