docker
Some checks failed
Build and Push Docker / build-and-push (push) Failing after 2m50s

This commit is contained in:
Oli Passey
2026-02-21 18:13:41 +00:00
parent 68cf0fcdc3
commit a9452c0afb
4 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
name: Build and Push Docker
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.REGISTRY_HOST }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
tags: |
${{ secrets.REGISTRY_HOST }}/${{ secrets.IMAGE_NAME }}:latest
${{ secrets.REGISTRY_HOST }}/${{ secrets.IMAGE_NAME }}:${{ github.sha }}