forked from makeplane/plane
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
acc28e6
commit 72b0226
Showing
1 changed file
with
16 additions
and
12 deletions.
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 |
---|---|---|
|
@@ -32,14 +32,14 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
needs: [branch_build_setup] | ||
env: | ||
FRONTEND_TAG: ${{ secrets.DOCKERHUB_USERNAME }}/plane-frontend:${{ needs.branch_build_setup.outputs.gh_branch_name }} | ||
FRONTEND_TAG: ${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPO }}/plane-frontend:${{ needs.branch_build_setup.outputs.gh_branch_name }} | ||
steps: | ||
- name: Set Frontend Docker Tag | ||
run: | | ||
if [ "${{ needs.branch_build_setup.outputs.gh_branch_name }}" == "master" ] && [ "${{ github.event_name }}" == "release" ]; then | ||
TAG=${{ secrets.DOCKERHUB_USERNAME }}/plane-frontend:latest,${{ secrets.DOCKERHUB_USERNAME }}/plane-frontend:${{ github.event.release.tag_name }} | ||
TAG=${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPO }}/plane-frontend:latest,${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPO }}/plane-frontend:${{ github.event.release.tag_name }} | ||
elif [ "${{ needs.branch_build_setup.outputs.gh_branch_name }}" == "master" ]; then | ||
TAG=${{ secrets.DOCKERHUB_USERNAME }}/plane-frontend:stable | ||
TAG=${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPO }}/plane-frontend:stable | ||
else | ||
TAG=${{ env.FRONTEND_TAG }} | ||
fi | ||
|
@@ -56,6 +56,7 @@ jobs: | |
- name: Login to Docker Hub | ||
uses: docker/[email protected] | ||
with: | ||
registry: ${{ secrets.DOCKER_REGISTRY }} | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
|
@@ -79,14 +80,14 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
needs: [branch_build_setup] | ||
env: | ||
SPACE_TAG: ${{ secrets.DOCKERHUB_USERNAME }}/plane-space:${{ needs.branch_build_setup.outputs.gh_branch_name }} | ||
SPACE_TAG: ${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPO }}/plane-space:${{ needs.branch_build_setup.outputs.gh_branch_name }} | ||
steps: | ||
- name: Set Space Docker Tag | ||
run: | | ||
if [ "${{ needs.branch_build_setup.outputs.gh_branch_name }}" == "master" ] && [ "${{ github.event_name }}" == "release" ]; then | ||
TAG=${{ secrets.DOCKERHUB_USERNAME }}/plane-space:latest,${{ secrets.DOCKERHUB_USERNAME }}/plane-space:${{ github.event.release.tag_name }} | ||
TAG=${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPO }}/plane-space:latest,${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPO }}/plane-space:${{ github.event.release.tag_name }} | ||
elif [ "${{ needs.branch_build_setup.outputs.gh_branch_name }}" == "master" ]; then | ||
TAG=${{ secrets.DOCKERHUB_USERNAME }}/plane-space:stable | ||
TAG=${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPO }}/plane-space:stable | ||
else | ||
TAG=${{ env.SPACE_TAG }} | ||
fi | ||
|
@@ -104,6 +105,7 @@ jobs: | |
- name: Login to Docker Hub | ||
uses: docker/[email protected] | ||
with: | ||
registry: ${{ secrets.DOCKER_REGISTRY }} | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
|
@@ -127,14 +129,14 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
needs: [branch_build_setup] | ||
env: | ||
BACKEND_TAG: ${{ secrets.DOCKERHUB_USERNAME }}/plane-backend:${{ needs.branch_build_setup.outputs.gh_branch_name }} | ||
BACKEND_TAG: ${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPO }}/plane-backend:${{ needs.branch_build_setup.outputs.gh_branch_name }} | ||
steps: | ||
- name: Set Backend Docker Tag | ||
run: | | ||
if [ "${{ needs.branch_build_setup.outputs.gh_branch_name }}" == "master" ] && [ "${{ github.event_name }}" == "release" ]; then | ||
TAG=${{ secrets.DOCKERHUB_USERNAME }}/plane-backend:latest,${{ secrets.DOCKERHUB_USERNAME }}/plane-backend:${{ github.event.release.tag_name }} | ||
TAG=${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPO }}/plane-backend:latest,${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPO }}/plane-backend:${{ github.event.release.tag_name }} | ||
elif [ "${{ needs.branch_build_setup.outputs.gh_branch_name }}" == "master" ]; then | ||
TAG=${{ secrets.DOCKERHUB_USERNAME }}/plane-backend:stable | ||
TAG=${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPO }}/plane-backend:stable | ||
else | ||
TAG=${{ env.BACKEND_TAG }} | ||
fi | ||
|
@@ -152,6 +154,7 @@ jobs: | |
- name: Login to Docker Hub | ||
uses: docker/[email protected] | ||
with: | ||
registry: ${{ secrets.DOCKER_REGISTRY }} | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
|
@@ -175,14 +178,14 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
needs: [branch_build_setup] | ||
env: | ||
PROXY_TAG: ${{ secrets.DOCKERHUB_USERNAME }}/plane-proxy:${{ needs.branch_build_setup.outputs.gh_branch_name }} | ||
PROXY_TAG: ${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPO }}/plane-proxy:${{ needs.branch_build_setup.outputs.gh_branch_name }} | ||
steps: | ||
- name: Set Proxy Docker Tag | ||
run: | | ||
if [ "${{ needs.branch_build_setup.outputs.gh_branch_name }}" == "master" ] && [ "${{ github.event_name }}" == "release" ]; then | ||
TAG=${{ secrets.DOCKERHUB_USERNAME }}/plane-proxy:latest,${{ secrets.DOCKERHUB_USERNAME }}/plane-proxy:${{ github.event.release.tag_name }} | ||
TAG=${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPO }}/plane-proxy:latest,${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPO }}/plane-proxy:${{ github.event.release.tag_name }} | ||
elif [ "${{ needs.branch_build_setup.outputs.gh_branch_name }}" == "master" ]; then | ||
TAG=${{ secrets.DOCKERHUB_USERNAME }}/plane-proxy:stable | ||
TAG=${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPO }}/plane-proxy:stable | ||
else | ||
TAG=${{ env.PROXY_TAG }} | ||
fi | ||
|
@@ -200,6 +203,7 @@ jobs: | |
- name: Login to Docker Hub | ||
uses: docker/[email protected] | ||
with: | ||
registry: ${{ secrets.DOCKER_REGISTRY }} | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
|