simplify cd proccess
This commit is contained in:
@@ -30,28 +30,14 @@ jobs:
|
|||||||
secrets/site/prod/data/server HOST | SERVER_HOST ;
|
secrets/site/prod/data/server HOST | SERVER_HOST ;
|
||||||
secrets/site/prod/data/server PORT | SERVER_PORT
|
secrets/site/prod/data/server PORT | SERVER_PORT
|
||||||
|
|
||||||
|
|
||||||
- name: Login to registry
|
- name: Login to registry
|
||||||
uses: docker/login-action@v3
|
run: echo "${{ steps.import-secrets.outputs.GITEA_TOKEN }}" | docker login gitea.d3m0k1d.ru -u d3m0k1d --password-stdin
|
||||||
with:
|
|
||||||
registry: gitea.d3m0k1d.ru
|
|
||||||
username: d3m0k1d
|
|
||||||
password: ${{ steps.import-secrets.outputs.GITEA_TOKEN }}
|
|
||||||
|
|
||||||
- name: Download QEMU
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
run: |
|
||||||
with:
|
docker build -t gitea.d3m0k1d.ru/d3m0k1d/frontend:latest ./frontend
|
||||||
context: ./frontend
|
docker push gitea.d3m0k1d.ru/d3m0k1d/frontend:latest
|
||||||
file: ./frontend/Dockerfile
|
|
||||||
push: true
|
|
||||||
tags: gitea.d3m0k1d.ru/d3m0k1d/frontend:latest
|
|
||||||
cache-from: type=gha
|
|
||||||
cache-to: type=gha,mode=max
|
|
||||||
|
|
||||||
- name: Deploy at server
|
- name: Deploy at server
|
||||||
uses: appleboy/ssh-action@v1.2.0
|
uses: appleboy/ssh-action@v1.2.0
|
||||||
|
|||||||
Reference in New Issue
Block a user