Skip to content

This commit significantly improves the asynchronous capabilities of t… #14

This commit significantly improves the asynchronous capabilities of t…

This commit significantly improves the asynchronous capabilities of t… #14

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@v5
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# Login to GitHub Container Registry only on push events
- name: Login to GitHub Container Registry
if: github.event_name == 'push'
uses: docker/login-action@v3
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@v6
with:
context: ./tests/setup
# Conditionally push based on the event type
push: ${{ github.event_name == 'push' }}
tags: ghcr.io/jacobcallahan/hussh/hussh-test-server:latest