Javier Feliz 2c8f7af468
All checks were successful
Build & Push Docker Image to Registry / build (release) Successful in 2m5s
Log in to registry
2025-07-16 16:40:52 -04:00

33 lines
825 B
YAML

name: Build & Push Docker Image to Registry
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Gitea Registry
uses: docker/login-action@v3
with:
registry: gitgud.foo
username: docker_registry_pusher
password: ${{ secrets.DOCKER_USER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: |
gitgud.foo/thegrind/laravel-base:latest
gitgud.foo/thegrind/laravel-base:${{ github.event.release.tag_name }}