test build on tag
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 32s

This commit is contained in:
2025-01-29 22:59:49 -05:00
parent ad842d49a9
commit 302b5b2f53

View File

@@ -0,0 +1,30 @@
name: Build and Push Docker Image
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v4
with:
context: .
tags: http://192.168.1.155:3000/siren:${{ github.ref_name }}
push: true