add deploy workflow
This commit is contained in:
parent
c421cd3121
commit
1365a33b33
25
.gitea/workflows/deploy.yaml
Normal file
25
.gitea/workflows/deploy.yaml
Normal file
@ -0,0 +1,25 @@
|
||||
name: Test build
|
||||
on:
|
||||
- push:
|
||||
- branches:
|
||||
- master
|
||||
- workflow_dispatch:
|
||||
|
||||
|
||||
jobs:
|
||||
Build-Docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
- name: Build Docker Image
|
||||
run: docker buildx build -t ${{ vars.DOCKER_TAG }} .
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- name: Push Docker image
|
||||
run: docker push ${{ vars.DOCKER_TAG }}
|
Loading…
x
Reference in New Issue
Block a user