Skip to content

Commit

Permalink
Revert "upload to docker hub instead of ghcr"
Browse files Browse the repository at this point in the history
This reverts commit 189bf84.
The docker container ghcr.io/mcpt/ctf:main is public now, so we can
revert to updating this one. Plus, now, even after I leave, it should
still work fine.
  • Loading branch information
nyiyui committed Mar 1, 2024
1 parent b0e9be3 commit 20c5789
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
push:

env:
REGISTRY: docker.io
IMAGE_NAME: nyiyui/ctf2
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image:
Expand All @@ -26,8 +26,8 @@ jobs:
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.REGISTRY }}
username: nyiyui
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
Expand Down

0 comments on commit 20c5789

Please sign in to comment.