forked from v2rayA/v2rayA
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docker): Publish docker images on Github Container Registry (v2…
…rayA#1425) * Temporary test * Push containers to ghcr.io via GitHub Actions * replace tabs with spaces * temporary comment out dockerhub * temporary comment out dockerhub for gui * revertme: remove non-ghcr docker image tags * convert repo owner name to lowercase * fix conversion to lowercase * fix typo, move lowercase conversion to calculate sooner * copy lowercase conversion to both jobs * fix typo * add labels to gui and dev Dockerfiles * specify correct push path for the ghcr.io * fix typo * hardcode image name * specify correct labels for upstream * add dockerhub tags * uncomment dockerhub login * restore Dockerfile.dev
- Loading branch information
1 parent
b0e207f
commit 1c486b4
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -760,11 +760,20 @@ jobs: | |
uses: docker/[email protected] | ||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
- name: Login to GitHub container registry | ||
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Login to DockerHub | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
- name: Convert repository owner to lowercase | ||
run: | | ||
echo "LOWERCASE_REPOSITORY_OWNER=${GITHUB_REPOSITORY_OWNER@L}" >>${GITHUB_ENV} | ||
- name: Build and push | ||
uses: docker/[email protected] | ||
with: | ||
|
@@ -776,6 +785,8 @@ jobs: | |
tags: | | ||
${{ steps.prep.outputs.image }}:${{ steps.prep.outputs.tag }} | ||
${{ steps.prep.outputs.image }}:latest | ||
ghcr.io/${{ env.LOWERCASE_REPOSITORY_OWNER }}/v2raya:${{ steps.prep.outputs.tag }} | ||
ghcr.io/${{ env.LOWERCASE_REPOSITORY_OWNER }}/v2raya:latest | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
Release_v2rayA_GUI_to_Docker: | ||
|
@@ -805,11 +816,20 @@ jobs: | |
uses: docker/[email protected] | ||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
- name: Login to GitHub container registry | ||
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Login to DockerHub | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
- name: Convert repository owner to lowercase | ||
run: | | ||
echo "LOWERCASE_REPOSITORY_OWNER=${GITHUB_REPOSITORY_OWNER@L}" >>${GITHUB_ENV} | ||
- name: Build and push | ||
uses: docker/[email protected] | ||
with: | ||
|
@@ -818,7 +838,9 @@ jobs: | |
file: install/docker/Dockerfile.GUI.Action | ||
platforms: linux/arm,linux/arm64,linux/amd64 | ||
push: true | ||
tags: mzz2017/v2raya-gui:latest | ||
tags: | | ||
mzz2017/v2raya-gui:latest | ||
ghcr.io/${{ env.LOWERCASE_REPOSITORY_OWNER }}/v2raya-gui:latest | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
Submit_to_Microsoft_winget: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters