Use org-level Docker registry secrets in CI
Some checks failed
Build and Push Sandbox Base Image / build (push) Has been cancelled
Some checks failed
Build and Push Sandbox Base Image / build (push) Has been cancelled
This commit is contained in:
@@ -26,9 +26,9 @@ jobs:
|
||||
- name: Log in to Gitea Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.danhenry.dev:5050
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
registry: ${{ secrets.DOCKER_REGISTRY }}
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Build and push
|
||||
id: build
|
||||
@@ -37,10 +37,10 @@ jobs:
|
||||
context: .
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: |
|
||||
git.danhenry.dev:5050/TheLab/sandbox-base-image:${{ github.sha }}
|
||||
git.danhenry.dev:5050/TheLab/sandbox-base-image:latest
|
||||
cache-from: type=registry,ref=git.danhenry.dev:5050/TheLab/sandbox-base-image:latest
|
||||
cache-to: type=registry,ref=git.danhenry.dev:5050/TheLab/sandbox-base-image:latest,mode=max
|
||||
${{ secrets.DOCKER_REGISTRY }}/TheLab/sandbox-base-image:${{ github.sha }}
|
||||
${{ secrets.DOCKER_REGISTRY }}/TheLab/sandbox-base-image:latest
|
||||
cache-from: type=registry,ref=${{ secrets.DOCKER_REGISTRY }}/TheLab/sandbox-base-image:latest
|
||||
cache-to: type=registry,ref=${{ secrets.DOCKER_REGISTRY }}/TheLab/sandbox-base-image:latest,mode=max
|
||||
platforms: linux/amd64,linux/arm64
|
||||
|
||||
- name: Tag and push stable (main only)
|
||||
|
||||
Reference in New Issue
Block a user