add action for image
Some checks failed
Docker Image / build (push) Failing after 12m18s

This commit is contained in:
LockeShor
2026-03-01 01:20:04 -05:00
parent 886564160e
commit 179c27520f

View File

@@ -0,0 +1,35 @@
name: Docker Image
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to container registry
if: github.event_name == 'push'
uses: docker/login-action@v3
with:
registry: ${{ secrets.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and publish Docker image
uses: docker/build-push-action@v4
with:
context: .
push: ${{ github.event_name == 'push' }}
tags: |
${{ secrets.REGISTRY_URL }}/${{ github.repository }}:${{ github.sha }}
${{ secrets.REGISTRY_URL }}/${{ github.repository }}:latest