File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -55,17 +55,17 @@ jobs:
55
55
tags : csbot:latest
56
56
- name : Run tests inside Docker
57
57
run : docker run --rm csbot:latest pytest
58
- - name : Login to GitHub Packages
59
- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
58
+ - name : Login to GitHub Container Registry
59
+ if : github.event_name == 'push' && github.repository == 'HackSoc/csbot' && github. ref == 'refs/heads/main'
60
60
uses : docker/login-action@v1
61
61
with :
62
- registry : docker.pkg.github.com
62
+ registry : ghcr.io
63
63
username : ${{ github.actor }}
64
64
password : ${{ secrets.GITHUB_TOKEN }}
65
65
- name : Publish Docker image
66
- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
66
+ if : github.event_name == 'push' && github.repository == 'HackSoc/csbot' && github. ref == 'refs/heads/main'
67
67
uses : docker/build-push-action@v2
68
68
with :
69
69
push : true
70
70
tags : |
71
- docker.pkg.github.com /hacksoc/csbot/csbot:latest
71
+ ghcr.io /hacksoc/csbot/csbot:latest
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: "3"
2
2
3
3
services :
4
4
bot :
5
- image : docker.pkg.github.com /hacksoc/csbot/csbot:latest
5
+ image : ghcr.io /hacksoc/csbot/csbot:latest
6
6
volumes :
7
7
- ${CSBOT_CONFIG_LOCAL:-./csbot.toml}:/app/csbot.toml
8
8
links :
You can’t perform that action at this time.
0 commit comments