File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Docker Image CI
2+
3+ on :
4+ push :
5+ branches : [ "master" ]
6+ release :
7+ types : [published]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ permissions :
13+ contents : read
14+ packages : write
15+ steps :
16+ - uses : actions/checkout@v3
17+ -
18+ name : Login to GitHub Container Registry
19+ uses : docker/login-action@v2
20+ with :
21+ registry : ghcr.io
22+ username : ${{ github.actor }}
23+ password : ${{ secrets.GITHUB_TOKEN }}
24+ # - name: Install SSH Key
25+ # uses: shimataro/ssh-key-action@v2
26+ # with:
27+ # key: ${{ secrets.PIPELINE_PRIVATE_KEY }}
28+ # known_hosts: unnecessary
29+ - name : Build the Docker image
30+ run : |
31+ docker build . --file Dockerfile --tag ghcr.io/bossboxing/FriendBlockly:latest
32+ docker push ghcr.io/bossboxing/FriendBlockly:latest
33+ # - name: Deploy To Server
34+ # uses: appleboy/ssh-action@master
35+ # with:
36+ # host: ${{ secrets.HOST }}
37+ # username: 'root'
38+ # password: ${{ secrets.PASSWORD }}
39+ # # key: ${{ secrets.PIPELINE_PRIVATE_KEY }}
40+ # port: 22
41+ # script: |
42+ # cd /root/workspace/
43+ # docker compose pull markodd-backend
44+ # docker compose up -d markodd-backend
45+ # docker image prune -af
46+
You can’t perform that action at this time.
0 commit comments