Fix github actions docker image workflow

This commit is contained in:
doctorpangloss 2025-02-06 09:48:41 -08:00
parent f4647a03e7
commit 49fcfaedce

View File

@ -5,8 +5,7 @@ on:
env: env:
REGISTRY: ghcr.io REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }} IMAGE_NAME: ${{ toLowerCase(github.repository) }}
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -16,16 +15,12 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: docker/login-action@v3
- name: Log in to GHCR
uses: docker/login-action@v3
with: with:
registry: ${{ env.REGISTRY }} registry: ${{ env.REGISTRY }}
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5
- name: Build and push
uses: docker/build-push-action@v5
with: with:
context: . context: .
push: true push: true