mirror of
https://github.com/Kizuren/SauceKudasai.git
synced 2025-12-21 13:06:16 +01:00
Updated GH workflow
This commit is contained in:
parent
239f43abf5
commit
d026d79dd0
1 changed files with 4 additions and 6 deletions
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
|
|
@ -2,10 +2,8 @@ name: Build Docker Image
|
|||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
# Manual trigger
|
||||
release:
|
||||
types: [created]
|
||||
# Automatic trigger on release creation
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
@ -17,20 +15,20 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue