Updated github workflow

This commit is contained in:
MarcUs7i 2025-02-21 02:53:58 +01:00
parent c97565465d
commit abe6ade85e

View file

@ -2,23 +2,32 @@ name: Build on Release
on: on:
release: release:
types: [published] types: [created]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Log in to GHCR permissions:
uses: docker/login-action@v2 contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push - name: Build and push Docker image
uses: docker/build-push-action@v4 uses: docker/build-push-action@v2
with: with:
context: . context: .
push: true push: true