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
|
- name: Log in to Gitea Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.danhenry.dev:5050
|
registry: ${{ secrets.DOCKER_REGISTRY }}
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
id: build
|
id: build
|
||||||
@@ -37,10 +37,10 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: |
|
tags: |
|
||||||
git.danhenry.dev:5050/TheLab/sandbox-base-image:${{ github.sha }}
|
${{ secrets.DOCKER_REGISTRY }}/TheLab/sandbox-base-image:${{ github.sha }}
|
||||||
git.danhenry.dev:5050/TheLab/sandbox-base-image:latest
|
${{ secrets.DOCKER_REGISTRY }}/TheLab/sandbox-base-image:latest
|
||||||
cache-from: type=registry,ref=git.danhenry.dev:5050/TheLab/sandbox-base-image:latest
|
cache-from: type=registry,ref=${{ secrets.DOCKER_REGISTRY }}/TheLab/sandbox-base-image:latest
|
||||||
cache-to: type=registry,ref=git.danhenry.dev:5050/TheLab/sandbox-base-image:latest,mode=max
|
cache-to: type=registry,ref=${{ secrets.DOCKER_REGISTRY }}/TheLab/sandbox-base-image:latest,mode=max
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
|
||||||
- name: Tag and push stable (main only)
|
- name: Tag and push stable (main only)
|
||||||
|
|||||||
Reference in New Issue
Block a user