Push dependencies image to the new registry (#1108)

This is the 1st of 2 PRs to migrate to the new Docker registry, where we have more control over the images and are able to manage them.
The new registry is https://hub.docker.com/u/photoview

---------

Co-authored-by: Konstantin Koval 
Co-authored-by: viktorstrate <viktorstrate@gmail.com>
This commit is contained in:
Kostiantyn
2024-11-02 18:52:46 +02:00
committed by GitHub
parent 7b69f247d3
commit 0d5225e542

View File

@@ -13,8 +13,7 @@ env:
IS_PUSHING_IMAGES: ${{ github.event_name != 'pull_request' && github.repository == 'photoview/photoview' }} IS_PUSHING_IMAGES: ${{ github.event_name != 'pull_request' && github.repository == 'photoview/photoview' }}
IS_CACHING: ${{ github.event_name == 'pull_request' }} IS_CACHING: ${{ github.event_name == 'pull_request' }}
DOCKER_USERNAME: viktorstrate DOCKER_USERNAME: viktorstrate
DOCKER_IMAGE: viktorstrate/dependencies DOCKER_IMAGE: photoview/dependencies
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7 PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7
jobs: jobs:
@@ -39,7 +38,7 @@ jobs:
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
username: ${{ env.DOCKER_USERNAME }} username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker meta - name: Docker meta
id: docker_meta id: docker_meta
@@ -55,15 +54,15 @@ jobs:
- name: Build and push - name: Build and push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
context: ./dependencies context: ./dependencies
platforms: ${{ env.PLATFORMS }} platforms: ${{ env.PLATFORMS }}
pull: true pull: true
push: ${{ env.IS_PUSHING_IMAGES }} push: ${{ env.IS_PUSHING_IMAGES }}
tags: ${{ steps.docker_meta.outputs.tags }} tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }} labels: ${{ steps.docker_meta.outputs.labels }}
annotations: ${{ steps.docker_meta.outputs.annotations }} annotations: ${{ steps.docker_meta.outputs.annotations }}
cache-from: ${{ ( env.IS_CACHING == 'true' && 'type=gha' ) || '' }} cache-from: ${{ ( env.IS_CACHING == 'true' && 'type=gha' ) || '' }}
cache-to: ${{ ( env.IS_CACHING == 'true' && 'type=gha,mode=max' ) || '' }} cache-to: ${{ ( env.IS_CACHING == 'true' && 'type=gha,mode=max' ) || '' }}
no-cache: ${{ env.IS_CACHING != 'true' }} no-cache: ${{ env.IS_CACHING != 'true' }}
sbom: true sbom: true
provenance: mode=max provenance: mode=max