Skip to content

fix Error response from daemon: invalid reference format: repository … #10

fix Error response from daemon: invalid reference format: repository …

fix Error response from daemon: invalid reference format: repository … #10

Workflow file for this run

name: Docker Image CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
image_name: TelegramGPTBot:$(date +%s)
image_path: /home/runner/work/TelegramGPTBot/TelegramGPTBot/TelegramGPTBot_image.tar
prod_image_folder_path: /root/projects/TelegramGPTBot
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: ls -l
run: |
ls -l
- name: Build the Docker image
run: |
docker-compose -f docker-compose.prod.yml build
- name: Save the Docker image to tar file
run: |
docker save -o telegram_gpt_bot_image.tar telegram_gpt_bot_image:latest
- name: ls -l
run: |
ls -l
- name: Copy tar file to prod server
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
# source: "tests/a.txt,tests/b.txt"
source: "$image_path"
target: $prod_image_folder_path
# - name: Copy tar file to prod server
# run: |
# # docker save -o $image_path $image_name
# - name: Load the Docker image in prod server
# run: |
# docker load -i $prod_image_path
# - name: copy file via ssh password
# uses: appleboy/[email protected]
# with:
# host: ${{ secrets.HOST }}
# username: ${{ secrets.USERNAME }}
# password: ${{ secrets.PASSWORD }}
# port: ${{ secrets.PORT }}
# source: "tests/a.txt,tests/b.txt"
# target: your_server_target_folder_path
# - name: Copy single file to remote
# uses: garygrossgarten/github-action-scp@release
# with:
# local: test/oof.txt
# remote: scp/single/oof.txt
# host: ${{ secrets.HOST }}
# username: ${{ secrets.SSH_USER }}
# password: ${{ secrets.PASSWORD }}
# delivery:
# name: Delivery
# runs-on: ubuntu-latest
# steps:
# - name: executing remote ssh commands using password
# uses: appleboy/[email protected]
# with:
# host: ${{ secrets.HOST }}
# username: ${{ secrets.USERNAME }}
# password: ${{ secrets.PASSWORD }}
# port: ${{ secrets.PORT }}
# script: whoami