This commit is contained in:
parent
18770e1860
commit
f805e96c30
@ -11,9 +11,9 @@ on:
|
||||
|
||||
env:
|
||||
# Use docker.io or ghcr.io
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: ${{ gitea.user }}
|
||||
IMAGE: "gitea-actions-repos-compare"
|
||||
REGISTRY: docker.io
|
||||
IMAGE_NAME: ${{ github.repository.split('/')[1] }}
|
||||
RELEASE: latest
|
||||
|
||||
|
||||
jobs:
|
||||
@ -33,11 +33,13 @@ jobs:
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ secrets.GH_USER }}
|
||||
password: ${{ secrets.GH_TOKEN }}
|
||||
username: ${{ secrets.DOCKER_USER }}
|
||||
password: ${{ secrets.DOCKER_PASS }}
|
||||
|
||||
- name: Build Docker image
|
||||
- name: Build and push Docker image
|
||||
id: build
|
||||
run: |
|
||||
echo "1: ${{ env.REGISTRY }} - 2:${{ env.IMAGE_NAME }} - 3:${{ env.IMAGE }}"
|
||||
docker build -t ${{ env.IMAGE_NAME }} -f Dockerfile .
|
||||
docker tag ${{ env.IMAGE_NAME }} ${{ env.REGISTRY }}/${{ secrets.DOCKER_USER }}/${{ env.IMAGE_NAME }}:${{ env.RELEASE }}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user