Skip to content

Commit

Permalink
Merge pull request #177 from HackSoc/github-container-registry
Browse files Browse the repository at this point in the history
Switch from GitHub Packages to GitHub Container Registry
  • Loading branch information
alanbriolat committed Feb 14, 2022
2 parents a2d5d36 + bfa4c02 commit 2b2d3dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ jobs:
tags: csbot:latest
- name: Run tests inside Docker
run: docker run --rm csbot:latest pytest
- name: Login to GitHub Packages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
- name: Login to GitHub Container Registry
if: github.event_name == 'push' && github.repository == 'HackSoc/csbot' && github.ref == 'refs/heads/main'
uses: docker/login-action@v1
with:
registry: docker.pkg.github.com
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Docker image
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: github.event_name == 'push' && github.repository == 'HackSoc/csbot' && github.ref == 'refs/heads/main'
uses: docker/build-push-action@v2
with:
push: true
tags: |
docker.pkg.github.com/hacksoc/csbot/csbot:latest
ghcr.io/hacksoc/csbot/csbot:latest
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3"

services:
bot:
image: docker.pkg.github.com/hacksoc/csbot/csbot:latest
image: ghcr.io/hacksoc/csbot/csbot:latest
volumes:
- ${CSBOT_CONFIG_LOCAL:-./csbot.toml}:/app/csbot.toml
links:
Expand Down

0 comments on commit 2b2d3dd

Please sign in to comment.