Update repo
This commit is contained in:
25
.gitea/workflows/docker-build.yml
Normal file
25
.gitea/workflows/docker-build.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Docker Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Log in to Gitea Registry
|
||||
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.cuihang1201.synology.me -u hangpersonal --password-stdin
|
||||
|
||||
- name: Build Docker image
|
||||
run: docker build -t gitea.cuihang1201.synology.me/hangpersonal/myapp:latest .
|
||||
|
||||
- name: Run Docker image
|
||||
run: docker run --rm gitea.cuihang1201.synology.me/hangpersonal/myapp:latest
|
||||
|
||||
- name: Push Docker image
|
||||
run: docker push gitea.cuihang1201.synology.me/hangpersonal/myapp:latest
|
Reference in New Issue
Block a user