-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I have very little faith that this will work, but giving it a shot!
- Loading branch information
1 parent
00876fc
commit fdf8213
Showing
5 changed files
with
45 additions
and
10 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Build, Test, and Publish Containers | ||
|
||
on: | ||
push: | ||
branches: | ||
- mkirk/ghcr | ||
- main # Trigger on pushes to main branch | ||
pull_request: | ||
branches: | ||
- main # Also trigger on pull requests to main | ||
|
||
jobs: | ||
build-test-publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install deps | ||
run: sudo apt update && sudo apt install -y zsh | ||
|
||
- name: Build | ||
run: ./run-rust.sh --all -- make build-all test-all | ||
|
||
- name: Login to GitHub Container Registry | ||
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Publish | ||
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | ||
run: ./run-rust.sh --all -- make publish-all |
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
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