Ultimos detalles
This commit is contained in:
@@ -10,34 +10,34 @@ jobs:
|
|||||||
container: catthehacker/ubuntu:act-latest
|
container: catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Docker Buildx
|
- uses: docker/login-action@v2
|
||||||
uses: https://github.com/docker/setup-buildx-action@v2
|
|
||||||
- name: Login to Docker Hub
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
with:
|
||||||
registry: git.skrd.fun
|
registry: git.skrd.fun
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
|
password: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
|
||||||
- name: Build and push
|
- uses: https://github.com/docker/setup-buildx-action@v2
|
||||||
uses: docker/build-push-action@master
|
- uses: docker/build-push-action@master
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: git.skrd.fun/skrd/start.skrd.fun:latest
|
tags: git.skrd.fun/skrd/start.skrd.fun:latest
|
||||||
#
|
|
||||||
#
|
|
||||||
# deploy:
|
deploy:
|
||||||
# needs: build
|
needs: build
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
#
|
|
||||||
# steps:
|
steps:
|
||||||
# - uses: actions/checkout@v3
|
- uses: docker/login-action@v2
|
||||||
# - name: Run build step
|
with:
|
||||||
# run: ./build.sh
|
registry: git.skrd.fun
|
||||||
# - name: Configure Server
|
username: ${{ github.repository_owner }}
|
||||||
# run: |
|
password: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
|
||||||
# apt update && apt install rsync -y
|
- name: Configure connection to server
|
||||||
# echo "${{ secrets.SERVER_PRIVATE_KEY }}" > private_key && chmod 600 private_key
|
run: |
|
||||||
# export SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i private_key -p ${{ secrets.SSH_PORT || 22 }}"
|
echo "${{ secrets.SERVER_PRIVATE_KEY }}" > private_key && chmod 600 private_key
|
||||||
# rsync -vrz -e "$SSH_COMMAND" public/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/var/www/start.skrd.fun/
|
ssh -o StrictHostKeyChecking=no -i private_key ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} -p ${{ secrets.SSH_PORT || 22 }} '
|
||||||
|
docker compose pull
|
||||||
|
docker compose up -d
|
||||||
|
'
|
||||||
|
|||||||
Reference in New Issue
Block a user