Skip to content

Commit bfa4c02

Browse files
committed
Switch from GitHub Packages to GitHub Container Registry
1 parent a2d5d36 commit bfa4c02

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/main.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,17 @@ jobs:
5555
tags: csbot:latest
5656
- name: Run tests inside Docker
5757
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'
6060
uses: docker/login-action@v1
6161
with:
62-
registry: docker.pkg.github.com
62+
registry: ghcr.io
6363
username: ${{ github.actor }}
6464
password: ${{ secrets.GITHUB_TOKEN }}
6565
- 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'
6767
uses: docker/build-push-action@v2
6868
with:
6969
push: true
7070
tags: |
71-
docker.pkg.github.com/hacksoc/csbot/csbot:latest
71+
ghcr.io/hacksoc/csbot/csbot:latest

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "3"
22

33
services:
44
bot:
5-
image: docker.pkg.github.com/hacksoc/csbot/csbot:latest
5+
image: ghcr.io/hacksoc/csbot/csbot:latest
66
volumes:
77
- ${CSBOT_CONFIG_LOCAL:-./csbot.toml}:/app/csbot.toml
88
links:

0 commit comments

Comments
 (0)