Skip to content

Commit

Permalink
workflow: re-add smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
KevFan committed Oct 18, 2023
1 parent b2d8f01 commit 7c0f0d7
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ jobs:
images: |
${{ env.IMG_REGISTRY_HOST}}/${{ env.IMG_REGISTRY_ORG }}/limitador
tags: |
type=sha
# set latest tag for main branch
type=raw,value=latest,enable=${{ github.ref_name == env.MAIN_BRANCH_NAME }}
# set branch name tag for non-main branches
type=raw,value=${{ github.ref_name }},enable=${{ github.ref_name != env.MAIN_BRANCH_NAME }}
type=sha
- name: Login to container registry
uses: docker/login-action@v2
with:
Expand All @@ -57,20 +57,10 @@ jobs:
GITHUB_SHA=${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
# - name: Build Image
# id: build-image
# uses: redhat-actions/buildah-build@v2
# with:
# image: limitador
# tags: ${{ env.IMG_TAGS }}
# platforms: linux/amd64,linux/arm64
# dockerfiles: |
# ./Dockerfile
# build-args: |
# GITHUB_SHA=${{ github.sha }}
# - name: Smoke Test
# run: |
# podman run --rm -t ${{ steps.build-image.outputs.image }}:${{ github.sha }} limitador-server --help
load: true
- name: Smoke Test
run: |
docker run --rm -t ${{ steps.meta.outputs.tags[0] }} limitador-server --help
# - name: Push Image
# if: ${{ !env.ACT }}
# id: push-to-quay
Expand Down

0 comments on commit 7c0f0d7

Please sign in to comment.