Files
DatBrowser/.gitea/workflows/pushImage.yaml
Matthias Guillitte 82460aa727
Some checks failed
Push image to registry / build-image (push) Has been cancelled
Launch the PHPunit tests / phpunit-tests (push) Has been cancelled
Only run if tests suceeded
2025-11-06 17:24:46 +01:00

25 lines
608 B
YAML

name: Push image to registry
on:
push:
branches:
- main
jobs:
build-image:
needs: phpunit-tests
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: git.matthiasg.dev
username: ninluc
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
run: |
docker build -t git.matthiasg.dev/ninluc/datbrowser:latest .
docker push git.matthiasg.dev/ninluc/datbrowser:latest