-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
91 additions
and
39 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 |
---|---|---|
|
@@ -14,14 +14,32 @@ jobs: | |
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Build Limitador Image | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: | | ||
limitador-testing | ||
tags: | | ||
type=raw,value=latest | ||
- name: Build Limitador Image | ||
id: build-image | ||
uses: redhat-actions/buildah-build@v2 | ||
uses: docker/build-push-action@v5 | ||
with: | ||
image: limitador-testing | ||
tags: latest | ||
dockerfiles: | | ||
./Dockerfile | ||
context: . | ||
tags: ${{ steps.meta.outputs.tags }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
# - name: Build Limitador Image | ||
# id: build-image | ||
# uses: redhat-actions/buildah-build@v2 | ||
# with: | ||
# image: limitador-testing | ||
# tags: latest | ||
# dockerfiles: | | ||
# ./Dockerfile | ||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
with: | ||
|
@@ -34,7 +52,7 @@ jobs: | |
kubectl cluster-info dump | ||
- name: Load limitador docker image | ||
run: | | ||
podman save -o image.tar ${{ steps.build-image.outputs.image }}:${{ steps.build-image.outputs.tags }} | ||
podman save -o image.tar ${{ steps.meta.outputs.tags }} | ||
kind load image-archive --name limitador-local image.tar | ||
- name: Deploy limitador | ||
run: | | ||
|