Skip to content

Commit

Permalink
ci: change dockerhub to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
EstrellaXD committed Dec 2, 2023
1 parent 5bd395a commit 5d556a3
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: Build

on:
workflow_dispatch:
push:
branches:
- main
tags:
- v*

jobs:
build:
Expand All @@ -16,8 +20,10 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKER_USERNAME }}/downloadagent
images: ghcr.io/${{ github.repository }}
tags: |
type=sha,format=short
type=semver, pattern={{version}}
type=raw,value=latest
-
Expand All @@ -28,12 +34,12 @@ jobs:
name: Set Up Buildx
uses: docker/setup-buildx-action@v3

-
name: Login DockerHub
uses: docker/login-action@v3
- name: Login to ghcr.io
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

-
name: Build
Expand Down

0 comments on commit 5d556a3

Please sign in to comment.