-
Notifications
You must be signed in to change notification settings - Fork 145
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
5 changed files
with
247 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
- 'main' | ||
- 'push-image-always' | ||
tags: | ||
- 'v*' | ||
- "v*" | ||
|
||
jobs: | ||
build-test-push-image: | ||
|
@@ -49,7 +49,7 @@ jobs: | |
- name: Install soci | ||
uses: lerentis/[email protected] | ||
with: | ||
soci-release: 'v0.4.0' | ||
soci-release: "v0.4.0" | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
|
@@ -100,7 +100,7 @@ jobs: | |
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: ./Dockerfile # Path to your Dockerfile | ||
file: ./Dockerfile # Path to your Dockerfile | ||
push: false | ||
tags: ${{ steps.meta.outputs.tags }} | ||
load: true | ||
|
@@ -168,6 +168,15 @@ jobs: | |
sudo ctr i push --user "${{ github.repository_owner }}:${{ secrets.GHCR_PAT }}" $tag | ||
done | ||
- name: Run integration tests | ||
uses: ./.github/workflows/integration-tests | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
with: | ||
test_image_tag: ${{ steps.meta.outputs.tags }} | ||
use_local_image: true | ||
github_token: ${{ secrets.GHCR_PAT }} | ||
huggingface_token: ${{ secrets.HUGGING_FACE_HUB_TOKEN }} | ||
|
||
- name: Create and push soci index | ||
env: | ||
tags: ${{ steps.meta.outputs.tags }} | ||
|
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
Oops, something went wrong.