Skip to content

Commit 5585f15

Browse files
committed
Re moving to github.
1 parent 1682b70 commit 5585f15

File tree

2 files changed

+22
-42
lines changed

2 files changed

+22
-42
lines changed

.gitea/workflows/deploy.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build and Deploy Docker Image
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-and-push:
10+
runs-on: [self-hosted, tenma]
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Build Docker image
16+
run: |
17+
docker build -t localhost:5000/nyusu:latest -t localhost:5000/nyusu:${{ github.sha }} .
18+
19+
- name: Push to local registry
20+
run: |
21+
docker push localhost:5000/nyusu:latest
22+
docker push localhost:5000/nyusu:${{ github.sha }}

0 commit comments

Comments
 (0)