edit and delete flows
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 20s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 20s
This commit is contained in:
@@ -22,23 +22,26 @@ jobs:
|
||||
run: |
|
||||
echo "${{ secrets.GITEATOKEN }}" | docker login "${{ env.REGISTRY_HOST }}" -u "${{ github.actor }}" --password-stdin
|
||||
env:
|
||||
REGISTRY_HOST: http://gitea:3000 # ← ЗАМЕНИТЕ на ваш домен или IP:порт
|
||||
REGISTRY_HOST: https://git.home # ← ЗАМЕНИТЕ на ваш домен или IP:порт
|
||||
|
||||
- name: Extract metadata (tags, labels)
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: |
|
||||
${{ env.REGISTRY_HOST }}/${{ github.repository }}
|
||||
tags: |
|
||||
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
|
||||
type=sha,format=short,prefix=
|
||||
type=ref,event=tag
|
||||
# - name: Extract metadata (tags, labels)
|
||||
# id: meta
|
||||
# uses: docker/metadata-action@v5
|
||||
# with:
|
||||
# images: |
|
||||
# ${{ env.REGISTRY_HOST }}/${{ github.repository }}
|
||||
# tags: |
|
||||
# type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
|
||||
# type=sha,format=short,prefix=
|
||||
# type=ref,event=tag
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
tags: user/app:latest, user/app:v1.0.0
|
||||
cache-from: type=registry,ref=user/app:buildcache
|
||||
cache-to: type=registry,ref=user/app:buildcache,mode=max
|
||||
# tags: ${{ steps.meta.outputs.tags }}
|
||||
# labels: ${{ steps.meta.outputs.labels }}
|
||||
Reference in New Issue
Block a user