Recreate create-and-push-image.yaml workflow for building and pushing Docker images
Some checks failed
Build And Push Image / docker (push) Failing after 1m46s

This commit is contained in:
2025-08-06 14:59:58 +02:00
parent ae928bbb9b
commit 870be11f7f

View File

@@ -0,0 +1,30 @@
name: Build And Push Image
on: [push]
jobs:
docker:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Login To Registry
uses: docker/login-action@v3
with:
registry: ${{ vars.REGISTRY_HOST }}
username: ${{ vars.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Set Up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build And Push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
push: true
tags: |
${{ vars.REGISTRY_HOST }}/${{ vars.REGISTRY_USERNAME }}/${{ vars.IMAGE_NAME }}:latest