Revert workflow
Some checks failed
Build and Publish drop-in-url-previews / build_and_publish (push) Failing after 12s
Some checks failed
Build and Publish drop-in-url-previews / build_and_publish (push) Failing after 12s
Signed-off-by: nex <git@nexy7574.co.uk>
This commit is contained in:
parent
c8898d6225
commit
13e0280132
1 changed files with 9 additions and 28 deletions
|
@ -1,22 +1,10 @@
|
|||
name: Publish Docker image
|
||||
|
||||
name: Build and Publish drop-in-url-previews
|
||||
run-name: Build and Publish drop-in-url-previews
|
||||
on: [push]
|
||||
|
||||
env:
|
||||
REGISTRY: git.i-am.nexus
|
||||
IMAGE_NAME: drop-in-url-previews
|
||||
|
||||
jobs:
|
||||
push_to_registry:
|
||||
name: Push Docker image to Docker Hub
|
||||
build_and_publish:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
contents: read
|
||||
attestations: write
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
@ -24,24 +12,17 @@ jobs:
|
|||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to CR
|
||||
- name: Login to git.i-am.nexus
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.i-am.nexus
|
||||
username: nex
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Extract metadata (tags, labels) for Docker
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/nex/${{ env.IMAGE_NAME }}
|
||||
- name: Build and push Docker image
|
||||
id: push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
images: git.i-am.nexus/nex/drop-in-url-previews
|
||||
- name: Push to container registry
|
||||
run: |
|
||||
docker push -a git.i-am.nexus/nex/drop-in-url-previews
|
Loading…
Reference in a new issue