wip ci/cd
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 51s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 51s
This commit is contained in:
@@ -10,10 +10,6 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
# - name: Setup Go
|
||||
# uses: actions/setup-go@v6
|
||||
# with:
|
||||
# go-version: '1.25'
|
||||
- name: Docker build
|
||||
run: docker build --tag git.madsky.ru/vadim/tracker .
|
||||
- name: Login to gitea
|
||||
@@ -27,17 +23,18 @@ jobs:
|
||||
IMAGE_TAG="git.madsky.ru/vadim/tracker:${{ gitea.sha }}"
|
||||
docker tag git.madsky.ru/vadim/tracker $IMAGE_TAG
|
||||
docker push $IMAGE_TAG
|
||||
# - name: Execute remote SSH commands using SSH key
|
||||
# uses: appleboy/ssh-action@v1
|
||||
# with:
|
||||
# host: ${{ secrets.HOST }}
|
||||
# username: ${{ secrets.USERNAME }}
|
||||
# key: ${{ secrets.KEY }}
|
||||
# port: ${{ secrets.PORT }}
|
||||
# script: whoami
|
||||
- name: Execute remote SSH commands using SSH key
|
||||
uses: appleboy/ssh-action@v1
|
||||
with:
|
||||
host: 192.168.1.11
|
||||
username: ${{ vars.USERNAME }}
|
||||
key: ${{ secrets.KEY }}
|
||||
script: |
|
||||
whoami
|
||||
ls -al
|
||||
- name: List files in the repository
|
||||
run: |
|
||||
ls ${{ gitea.workspace }}
|
||||
docker run -d --name tracker -p 9999:3000 git.madsky.ru/vadim/tracker:latest
|
||||
# docker run -d --name tracker -p 3300:3000 git.madsky.ru/vadim/tracker:latest
|
||||
- name: Execute a single command
|
||||
run: echo "Hello, world!"
|
||||
Reference in New Issue
Block a user