master #3
@@ -30,28 +30,14 @@ jobs:
|
||||
secrets/site/prod/data/server HOST | SERVER_HOST ;
|
||||
secrets/site/prod/data/server PORT | SERVER_PORT
|
||||
|
||||
|
||||
- name: Login to registry
|
||||
uses: docker/login-action@v3
|
||||
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
|
||||
run: echo "${{ steps.import-secrets.outputs.GITEA_TOKEN }}" | docker login gitea.d3m0k1d.ru -u d3m0k1d --password-stdin
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./frontend
|
||||
file: ./frontend/Dockerfile
|
||||
push: true
|
||||
tags: gitea.d3m0k1d.ru/d3m0k1d/frontend:latest
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
run: |
|
||||
docker build -t gitea.d3m0k1d.ru/d3m0k1d/frontend:latest ./frontend
|
||||
docker push gitea.d3m0k1d.ru/d3m0k1d/frontend:latest
|
||||
|
||||
- name: Deploy at server
|
||||
uses: appleboy/ssh-action@v1.2.0
|
||||
|
||||
Reference in New Issue
Block a user