test build on tag
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 32s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 32s
This commit is contained in:
30
.gitea/workflows/docker_build_on_tag.yml
Normal file
30
.gitea/workflows/docker_build_on_tag.yml
Normal 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
|
||||||
Reference in New Issue
Block a user