1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 18:23:12 +00:00

Update docker-image.yml

This commit is contained in:
wlinator 2024-07-19 19:30:40 -04:00
parent 3c016a6ac3
commit d799138962

View file

@ -3,10 +3,8 @@ name: Create and Publish Docker Image CI
on:
push:
branches:
- "main"
tags:
- "*.*.*"
branches: [ "main" ]
tags: [ "*.*.*" ]
pull_request:
jobs:
@ -14,6 +12,9 @@ jobs:
docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
-
@ -39,14 +40,14 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# -
# name: Login to GHCR
# if: github.event_name != 'pull_request'
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}
-
name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v6