ci: add github workflow

This commit is contained in:
jabuxas 2025-02-11 00:20:26 -03:00
parent 84de4b07a2
commit f93fb91268

31
.github/workflows/docker.yaml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker registry
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login git.jabuxas.com -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
- name: Build and push Docker image
run: |
docker build -t git.jabuxas.com/jabuxas/refinement:latest .
docker push git.jabuxas.com/jabuxas/refinement:latest
- name: Log out of Docker registry
run: docker logout git.jabuxas.com