Use add-hosts
This commit is contained in:
@@ -75,18 +75,14 @@ jobs:
|
|||||||
registry: ${{ vars.REGISTRY }}
|
registry: ${{ vars.REGISTRY }}
|
||||||
username: ${{ vars.DEPLOY_USER }}
|
username: ${{ vars.DEPLOY_USER }}
|
||||||
password: ${{ secrets.DEPLOY_TOKEN }}
|
password: ${{ secrets.DEPLOY_TOKEN }}
|
||||||
- name: Log into Gitea Container Registry (internal)
|
add-hosts: ${{ vars.ADD_HOSTS }}
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: ${{ vars.REGISTRY_PRIVATE }}
|
|
||||||
username: ${{ vars.DEPLOY_USER }}
|
|
||||||
password: ${{ secrets.DEPLOY_TOKEN }}
|
|
||||||
- name: Build and push receiver container
|
- name: Build and push receiver container
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ vars.REGISTRY_PRIVATE }}/ham/hamview-receiver:latest
|
tags: ${{ vars.REGISTRY }}/ham/hamview-receiver:latest
|
||||||
context: .
|
context: .
|
||||||
|
add-hosts: ${{ vars.ADD_HOSTS }}
|
||||||
platforms: |
|
platforms: |
|
||||||
linux/amd64
|
linux/amd64
|
||||||
linux/arm/v6
|
linux/arm/v6
|
||||||
|
|||||||
Reference in New Issue
Block a user