general: also release docker image to GitHub container registry

This commit is contained in:
Lan Tian 2023-09-06 21:06:10 -07:00
parent 462d76a2d0
commit 4bd7a6bb95
No known key found for this signature in database
GPG Key ID: 04E66B6B25A0862B
2 changed files with 20 additions and 0 deletions

View File

@ -19,6 +19,13 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build frontend docker image - name: Build frontend docker image
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
@ -28,6 +35,8 @@ jobs:
tags: | tags: |
xddxdd/bird-lg-go:develop xddxdd/bird-lg-go:develop
xddxdd/bird-lg-go:develop-${{ github.sha }} xddxdd/bird-lg-go:develop-${{ github.sha }}
ghcr.io/xddxdd/bird-lg-go:frontend-develop
ghcr.io/xddxdd/bird-lg-go:frontend-develop-${{ github.sha }}
- name: Build proxy docker image - name: Build proxy docker image
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
@ -38,3 +47,5 @@ jobs:
tags: | tags: |
xddxdd/bird-lgproxy-go:develop xddxdd/bird-lgproxy-go:develop
xddxdd/bird-lgproxy-go:develop-${{ github.sha }} xddxdd/bird-lgproxy-go:develop-${{ github.sha }}
ghcr.io/xddxdd/bird-lg-go:proxy-develop
ghcr.io/xddxdd/bird-lg-go:proxy-develop-${{ github.sha }}

View File

@ -18,6 +18,13 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build frontend docker image - name: Build frontend docker image
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
@ -26,6 +33,7 @@ jobs:
push: true push: true
tags: | tags: |
xddxdd/bird-lg-go:latest xddxdd/bird-lg-go:latest
ghcr.io/xddxdd/bird-lg-go:frontend
- name: Build proxy docker image - name: Build proxy docker image
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
@ -35,3 +43,4 @@ jobs:
push: true push: true
tags: | tags: |
xddxdd/bird-lgproxy-go:latest xddxdd/bird-lgproxy-go:latest
ghcr.io/xddxdd/bird-lg-go:proxy