Создал контейнер
This commit is contained in:
22
.gitea/workflows/build.yml
Normal file
22
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
name: Build
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: set up buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
- name: build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: docker.rqsh.ru/calculator:latest
|
||||
build-args: |
|
||||
COMMIT_HASH=${{ github.sha }}
|
||||
13
.gitea/workflows/deploy.yml
Normal file
13
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
name: Deploy
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: deploy
|
||||
uses: appleboy/ssh-action@v1.0.3
|
||||
with:
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
username: ${{ secrets.SSH_USERNAME }}
|
||||
password: ${{ secrets.SSH_PASSWORD }}
|
||||
script: cd ${{ secrets.STACK_DIRECTORY }} && docker compose pull && docker compose up -d
|
||||
Reference in New Issue
Block a user