fix: init docker
This commit is contained in:
parent
6bf6aa31e8
commit
bf599c58c3
1 changed files with 3 additions and 7 deletions
|
|
@ -17,6 +17,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: '^1.25'
|
go-version: '^1.25'
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
# Build application
|
# Build application
|
||||||
- name: Build Go app
|
- name: Build Go app
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -38,18 +41,11 @@ jobs:
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: meowgit.nekoea.red/nihonium/nyanimedb:latest
|
tags: meowgit.nekoea.red/nihonium/nyanimedb:latest
|
||||||
# - name: Build Docker image
|
|
||||||
# run: |
|
|
||||||
# cd modules/server
|
|
||||||
# docker build -t nyanimedb:latest .
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue