1
Fork 0

Enable building images.

This commit is contained in:
Googol Lee 2024-09-17 16:00:13 +02:00
parent 466ce59e31
commit 8932296632
2 changed files with 9 additions and 6 deletions

View File

@ -2,16 +2,16 @@ name: Docker builds
on:
push:
branches: [master]
branches: ['*']
tags:
- v*
pull_request:
branches: [master]
env:
IS_PUSHING_IMAGES: ${{ github.event_name != 'pull_request' && github.repository == 'photoview/photoview' }}
IS_PUSHING_IMAGES: ${{ github.event_name != 'pull_request' && github.repository == 'googollee/photoview' }}
DOCKER_USERNAME: viktorstrate
DOCKER_IMAGE: viktorstrate/photoview
DOCKER_IMAGE: ghcr.io/googollee/photoview
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7
@ -37,8 +37,11 @@ jobs:
if: ${{ env.IS_PUSHING_IMAGES == 'true' }}
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# username: ${{ env.DOCKER_USERNAME }}
# password: ${{ env.DOCKER_PASSWORD }}
- name: Docker meta
id: docker_meta

View File

@ -2,7 +2,7 @@ name: Tests
on:
push:
branches: [master]
branches: ['*']
pull_request:
branches: [master]