-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the test server container to use the new ghcr image
Some updated to make this easier to use and maintain.
- Loading branch information
1 parent
2e1eeb8
commit 3b427c2
Showing
3 changed files
with
45 additions
and
8 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,38 @@ | ||
name: Update Hussh Test Server GHCR Image | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'tests/setup/**' | ||
pull_request: | ||
paths: | ||
- 'tests/setup/**' | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
# Login to GitHub Container Registry only on push events | ||
- name: Login to GitHub Container Registry | ||
if: github.event_name == 'push' | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: jacobcallahan | ||
password: ${{ secrets.GHCR_TOKEN }} | ||
|
||
# Build and push Docker image | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
# Conditionally push based on the event type | ||
push: ${{ github.event_name == 'push' }} | ||
tags: ghcr.io/jacobcallahan/hussh/hussh-test-server:latest |
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