Skip to content

added youtube intro

added youtube intro #8

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push Docker images
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
# platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
tags: backroad-docs:latest
outputs: type=docker,dest=/tmp/backroad-docs.tar
cache-from: type=gha
cache-to: type=gha,mode=max
- run: ls -la /tmp
- run: whoami
- name: use ssh agent
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SUDOMAKES_KEY }}
- name: do ssh
env:
HOST: ${{ secrets.SUDOMAKES_HOSTNAME }}
USER: ${{ secrets.SUDOMAKES_USER }}
PORT: ${{ secrets.SUDOMAKES_PORT }}
run: |
scp -o StrictHostKeyChecking=no -P $PORT /tmp/backroad-docs.tar $USER@$HOST:/tmp
ssh -o StrictHostKeyChecking=no -p $PORT $USER@$HOST 'ls -la /tmp/ && docker load --input /tmp/backroad-docs.tar'