From 1acf43ab05cc169d02bfb4540d0a59036bbfc962 Mon Sep 17 00:00:00 2001 From: Naoki Kosaka Date: Wed, 1 Jan 2020 01:18:55 +0900 Subject: [PATCH] Replace DockerHub to GitHub Packages. --- .github/workflows/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cc7b47c..4cd3fd5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,13 +20,13 @@ jobs: REDIS_URL: redis://localhost:${{ job.services.redis.ports['6379'] }} - name: Build Docker Images run: | - docker build -t ${{ secrets.REGISTORY_USER }}/activity-relay:edge . - docker tag ${{ secrets.REGISTORY_USER }}/activity-relay:edge ${{ secrets.REGISTORY_USER }}/activity-relay:$(echo ${GITHUB_SHA}|head -c7) - - name: Push Docker Images to DockerHub + docker build -t docker.pkg.github.com/${{ secrets.REGISTORY_USER }}/activity-relay/activity-relay:edge . + docker tag docker.pkg.github.com/${{ secrets.REGISTORY_USER }}/activity-relay/activity-relay:edge docker.pkg.github.com/${{ secrets.REGISTORY_USER }}/activity-relay/activity-relay:$(echo ${GITHUB_SHA}|head -c7) + - name: Push Docker Images to GitHub Packages run: | - docker login -u ${{ secrets.REGISTORY_USER }} -p ${{ secrets.REGISTORY_PASS }} - docker push ${{ secrets.REGISTORY_USER }}/activity-relay:edge - docker push ${{ secrets.REGISTORY_USER }}/activity-relay:$(echo ${GITHUB_SHA}|head -c7) + docker login docker.pkg.github.com -u ${{ secrets.REGISTORY_USER }} -p ${{ secrets.GITHUB_TOKEN }} + docker push docker.pkg.github.com/${{ secrets.REGISTORY_USER }}/activity-relay/activity-relay:edge + docker push docker.pkg.github.com/${{ secrets.REGISTORY_USER }}/activity-relay/activity-relay:$(echo ${GITHUB_SHA}|head -c7) services: redis: image: redis