-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (34 loc) · 1000 Bytes
/
hyperion_push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Push updated Hyperion image
on:
workflow_dispatch:
push:
paths:
- 'hyperion/**'
- '.github/workflows/hyperion_push.yml'
branches:
- main
pull_request:
paths:
- 'hyperion/**'
- '.github/workflows/hyperion_push.yml'
jobs:
push:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_REGISTRY_TOKEN }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v6
with:
push: ${{ github.ref == 'refs/heads/main' }}
context: ./hyperion
file: ./hyperion/Dockerfile
tags: |
ghcr.io/${{ github.repository_owner }}/hyperion:${{ github.sha }}
ghcr.io/${{ github.repository_owner }}/hyperion:latest