This commit is contained in:
Manish Gupta 2023-11-07 15:12:37 +05:30
parent b1ca89e442
commit ada796dc9b

View File

@ -21,8 +21,6 @@ on:
env: env:
gh_branch: ${{ github.ref_name }}
gh_t_branch: ${{ github.event.pull_request.base.ref }}
TARGET_BRANCH: '' TARGET_BRANCH: ''
jobs: jobs:
@ -192,33 +190,34 @@ jobs:
# DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} # DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
# DOCKET_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} # DOCKET_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
branch_build_push_proxy: # branch_build_push_proxy:
runs-on: ubuntu-20.04 # runs-on: ubuntu-20.04
needs: [ branch_build_and_push ] # needs: [ branch_build_and_push ]
steps: # steps:
- name: Set up Docker Buildx # - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.5.0 # uses: docker/setup-buildx-action@v2.5.0
- name: Login to Docker Hub # - name: Login to Docker Hub
uses: docker/login-action@v2.1.0 # uses: docker/login-action@v2.1.0
with: # with:
username: ${{ secrets.DOCKERHUB_USERNAME }} # username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} # password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Downloading Proxy Source Code # - name: Downloading Proxy Source Code
uses: actions/download-artifact@v3 # uses: actions/download-artifact@v3
with: # with:
name: proxy-src-code # name: proxy-src-code
# - name: Build and Push Plane-Proxy to Docker Hub
# uses: docker/build-push-action@v4.0.0
# with:
# context: .
# file: ./Dockerfile
# platforms: linux/amd64
# tags: ${{ secrets.DOCKERHUB_USERNAME }}/plane-proxy-private:${{ needs.branch_build_and_push.outputs.gh_branch_name }}
# push: true
# env:
# DOCKER_BUILDKIT: 1
# DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
# DOCKET_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push Plane-Proxy to Docker Hub
uses: docker/build-push-action@v4.0.0
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
tags: ${{ secrets.DOCKERHUB_USERNAME }}/plane-proxy-private:${{ needs.branch_build_and_push.outputs.gh_branch_name }}
push: true
env:
DOCKER_BUILDKIT: 1
DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKET_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}