Skip to content

Commit

Permalink
Try to test the artifact before pushing it
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Crossley <[email protected]>
  • Loading branch information
jcrossley3 committed Oct 3, 2024
1 parent 93e18f7 commit 9a56049
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/container-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,21 @@ jobs:
run: ls -R ${{ github.workspace }}/download

# Build the container

- uses: ./.github/actions/build-container
- name: Build container
uses: ./.github/actions/build-container
with:
image_name: ${{ env.IMAGE_NAME }}
image_tag: ${{ env.IMAGE_TAG }}

# Push to ghcr.io
# Test the container
- name: Test container
uses: trustification/trustify-ci/.github/workflows/global-ci.yml@main
with:
artifact: container
run_api_tests: true
run_ui_tests: true

# Push to ghcr.io
- name: Push to ghcr.io
uses: redhat-actions/push-to-registry@v2
with:
Expand All @@ -60,10 +67,3 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

run-global-ci:
needs: publish
uses: trustification/trustify-ci/.github/workflows/global-ci.yml@main
with:
server_image: ghcr.io/trustification/trustd:latest
run_api_tests: true
run_ui_tests: true

0 comments on commit 9a56049

Please sign in to comment.