test
Some checks failed
Gitea Ansible Docker image build and publish / Push Docker image to Docker Hub (push) Failing after 42s

This commit is contained in:
Andrey Sokolovskiy 2024-12-12 13:29:51 +07:00
parent ac1ac4b594
commit 975eeeec7d

View File

@ -12,10 +12,6 @@ jobs:
- name: Check out the repo - name: Check out the repo
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Login test
run: docker login -u anry -p "${{ secrets.REGISTRY_TOKEN }}" git.unbind.ru
- name: Log in to Docker Hub - name: Log in to Docker Hub
uses: actions/docker-login-action@v3 uses: actions/docker-login-action@v3
with: with:
@ -23,12 +19,11 @@ jobs:
username: anry username: anry
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN }}
- name: Extract metadata (tags, labels) for Docker - name: Extract metadata (tags, labels) for Docker
id: meta id: meta
uses: actions/docker-metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 uses: actions/docker-metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with: with:
images: my-docker-hub-namespace/my-docker-hub-repository images: https://git.unbind.ru/docker/ansible
- name: Build and push Docker image - name: Build and push Docker image
id: push id: push
@ -37,12 +32,6 @@ jobs:
context: . context: .
file: ./Dockerfile file: ./Dockerfile
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: https://git.unbind.ru/docker/ansible:latest
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
- name: Generate artifact attestation
uses: actions/docker-attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true