mirror of
https://git.mills.io/prologic/zs-starter-template.git
synced 2024-11-21 21:06:03 +03:00
Fix workflows
This commit is contained in:
parent
5a292596ec
commit
c10f2895fd
@ -1,6 +1,6 @@
|
||||
---
|
||||
|
||||
name: Build
|
||||
name: 🛠️ Build
|
||||
|
||||
on:
|
||||
push:
|
||||
|
33
.gitea/workflows/publish.yml
Normal file
33
.gitea/workflows/publish.yml
Normal file
@ -0,0 +1,33 @@
|
||||
---
|
||||
|
||||
name: 🚀 Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
env:
|
||||
REGISTRY: r.mills.io
|
||||
IMAGE: prologic/zs.mills.io
|
||||
TAG: latest
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup Docker Buildx
|
||||
uses: actions/setup-buildx@v2
|
||||
- name: Login to Registry
|
||||
uses: actions/docker-login@v2
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ secrets.REGISTRY_USER }}
|
||||
password: ${{ secrets.REGISTRY_PASS }}
|
||||
- name: Build and Push Image
|
||||
uses: actions/docker-build-push@v4
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ env.REGISTRY}}/${{ env.IMAGE }}:${{ env.TAG }}
|
Loading…
Reference in New Issue
Block a user