java-21-dev-yolk/.gitea/workflows/publish.yaml
Drake Marino 81432927e9
All checks were successful
Publish / build_and_publish_docker_image (push) Successful in 1m29s
fix repo location
2025-05-21 17:24:51 -05:00

31 lines
702 B
YAML

name: Publish
on:
push:
branches:
- main
jobs:
build_and_publish_docker_image:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install Docker
run: curl -fsSL https://get.docker.com | sh
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: git.marinodev.com
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v6
with:
push: true
tags: git.marinodev.com/drake/java-21-dev-yolk:latest