Skip to content

Commit

Permalink
chore: release image to docker.pkg.github.com (#703)
Browse files Browse the repository at this point in the history
* chore: release image to docker.pkg.github.com

Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Sep 30, 2021
1 parent 6f15b04 commit 73c797a
Showing 1 changed file with 40 additions and 4 deletions.
44 changes: 40 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: docker.pkg.github.com
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push to Docker Hub
uses: docker/build-push-action@v2
with:
Expand All @@ -48,7 +55,9 @@ jobs:
build-args: |
GITVERSION=git-${{ steps.vars.outputs.git_revision }}
VERSION=${{ steps.get_version.outputs.VERSION }}
tags: dragonflyoss/scheduler:${{ steps.get_version.outputs.VERSION }}
tags: |
dragonflyoss/scheduler:${{ steps.get_version.outputs.VERSION }}
docker.pkg.github.com/${{ github.repository }}/scheduler:${{ steps.get_version.outputs.VERSION }}
push: true

push_dfdaemon_to_registry:
Expand Down Expand Up @@ -82,6 +91,13 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: docker.pkg.github.com
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push to Docker Hub
uses: docker/build-push-action@v2
with:
Expand All @@ -93,7 +109,9 @@ jobs:
build-args: |
GITVERSION=git-${{ steps.vars.outputs.git_revision }}
VERSION=${{ steps.get_version.outputs.VERSION }}
tags: dragonflyoss/dfdaemon:${{ steps.get_version.outputs.VERSION }}
tags: |
dragonflyoss/dfdaemon:${{ steps.get_version.outputs.VERSION }}
docker.pkg.github.com/${{ github.repository }}/dfdaemon:${{ steps.get_version.outputs.VERSION }}
push: true

push_cdn_to_registry:
Expand Down Expand Up @@ -127,6 +145,13 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: docker.pkg.github.com
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push to Docker Hub
uses: docker/build-push-action@v2
with:
Expand All @@ -138,7 +163,9 @@ jobs:
build-args: |
GITVERSION=git-${{ steps.vars.outputs.git_revision }}
VERSION=${{ steps.get_version.outputs.VERSION }}
tags: dragonflyoss/cdn:${{ steps.get_version.outputs.VERSION }}
tags: |
dragonflyoss/cdn:${{ steps.get_version.outputs.VERSION }}
docker.pkg.github.com/${{ github.repository }}/cdn:${{ steps.get_version.outputs.VERSION }}
push: true

push_manager_to_registry:
Expand Down Expand Up @@ -172,6 +199,13 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: docker.pkg.github.com
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push to Docker Hub
uses: docker/build-push-action@v2
with:
Expand All @@ -183,5 +217,7 @@ jobs:
build-args: |
GITVERSION=git-${{ steps.vars.outputs.git_revision }}
VERSION=${{ steps.get_version.outputs.VERSION }}
tags: dragonflyoss/manager:${{ steps.get_version.outputs.VERSION }}
tags: |
dragonflyoss/manager:${{ steps.get_version.outputs.VERSION }}
docker.pkg.github.com/${{ github.repository }}/manager:${{ steps.get_version.outputs.VERSION }}
push: true

0 comments on commit 73c797a

Please sign in to comment.