Replace DockerHub to GitHub Packages.
This commit is contained in:
parent
49f1469f8e
commit
1acf43ab05
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
@ -20,13 +20,13 @@ jobs:
|
|||||||
REDIS_URL: redis://localhost:${{ job.services.redis.ports['6379'] }}
|
REDIS_URL: redis://localhost:${{ job.services.redis.ports['6379'] }}
|
||||||
- name: Build Docker Images
|
- name: Build Docker Images
|
||||||
run: |
|
run: |
|
||||||
docker build -t ${{ secrets.REGISTORY_USER }}/activity-relay:edge .
|
docker build -t docker.pkg.github.com/${{ secrets.REGISTORY_USER }}/activity-relay/activity-relay:edge .
|
||||||
docker tag ${{ secrets.REGISTORY_USER }}/activity-relay:edge ${{ secrets.REGISTORY_USER }}/activity-relay:$(echo ${GITHUB_SHA}|head -c7)
|
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 DockerHub
|
- name: Push Docker Images to GitHub Packages
|
||||||
run: |
|
run: |
|
||||||
docker login -u ${{ secrets.REGISTORY_USER }} -p ${{ secrets.REGISTORY_PASS }}
|
docker login docker.pkg.github.com -u ${{ secrets.REGISTORY_USER }} -p ${{ secrets.GITHUB_TOKEN }}
|
||||||
docker push ${{ secrets.REGISTORY_USER }}/activity-relay:edge
|
docker push docker.pkg.github.com/${{ secrets.REGISTORY_USER }}/activity-relay/activity-relay:edge
|
||||||
docker push ${{ secrets.REGISTORY_USER }}/activity-relay:$(echo ${GITHUB_SHA}|head -c7)
|
docker push docker.pkg.github.com/${{ secrets.REGISTORY_USER }}/activity-relay/activity-relay:$(echo ${GITHUB_SHA}|head -c7)
|
||||||
services:
|
services:
|
||||||
redis:
|
redis:
|
||||||
image: redis
|
image: redis
|
||||||
|
Loading…
x
Reference in New Issue
Block a user