This commit is contained in:
Manish Gupta 2023-11-07 15:17:46 +05:30
parent aac7b256fb
commit 6f3609b818

View File

@ -2,9 +2,9 @@
name: Docker Branch Build name: Docker Branch Build
on: on:
push: # push:
branches: # branches:
- "*" # - "*"
pull_request: pull_request:
types: types:
- opened - opened
@ -190,34 +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 - name: Build and Push Plane-Proxy to Docker Hub
# uses: docker/build-push-action@v4.0.0 uses: docker/build-push-action@v4.0.0
# with: with:
# context: . context: .
# file: ./Dockerfile file: ./Dockerfile
# platforms: linux/amd64 platforms: linux/amd64
# tags: ${{ secrets.DOCKERHUB_USERNAME }}/plane-proxy-private:${{ needs.branch_build_and_push.outputs.gh_branch_name }} tags: ${{ secrets.DOCKERHUB_USERNAME }}/plane-proxy-private:${{ needs.branch_build_and_push.outputs.gh_branch_name }}
# push: true push: true
# env: env:
# DOCKER_BUILDKIT: 1 DOCKER_BUILDKIT: 1
# DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
# DOCKET_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} DOCKET_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}