ci(release): ✨ WIP add build server image
This commit is contained in:
parent
4369ebb2a5
commit
b6b76957da
1 changed files with 28 additions and 1 deletions
|
|
@ -36,4 +36,31 @@ jobs:
|
|||
with:
|
||||
md5sum: true
|
||||
files: |-
|
||||
client/dist/client.zip
|
||||
client/dist/client.zip
|
||||
build_server_binary:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: git fetch --unshallow --quiet --tags --force
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
- uses: docker/metadata-action@v5
|
||||
id: meta
|
||||
with:
|
||||
images: pakin/tb-mng-server-app
|
||||
tags: |
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern=latest
|
||||
type=semver,pattern={{major}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}.{{minor}}.{{patch}}
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
registry: pakin-inspiron-15-3530.tail360bd.ts.net
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./server/Dockerfile
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue