Skip to content

Commit

Permalink
Switch Docker registry to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
thevops committed Jul 31, 2024
1 parent b2396ac commit 521745f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,19 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
images: thevops/youtube-tracker
images: ghcr.io/thevops/youtube-tracker
tags: |
type=sha
type=semver,pattern={{raw}}
type=ref,event=branch
type=ref,event=pr
- name: Login to Docker Hub
- name: 🔐 Login to GitHub Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: 📦 Build and push Docker image
uses: docker/build-push-action@v6
Expand Down
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3"

env:
DOCKER_IMAGE_NAME: thevops/youtube-tracker:v1.0.0
DOCKER_IMAGE_NAME: ghcr.io/thevops/youtube-tracker:latest

tasks:
#
Expand Down
2 changes: 1 addition & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
services:
app:
# image: thevops/youtube-tracker
# image: ghcr.io/thevops/youtube-tracker
build:
context: .
dockerfile: Dockerfile
Expand Down

0 comments on commit 521745f

Please sign in to comment.