From b1869bf4a5b742ccbf590c6452e0a811d45fe88d Mon Sep 17 00:00:00 2001 From: quidl <43738052+quidl@users.noreply.github.com> Date: Mon, 5 Aug 2024 23:21:46 +0700 Subject: [PATCH] Add proxy --- .github/workflows/publish_agent_docker.yml | 44 ++++++++++------------ 1 file changed, 19 insertions(+), 25 deletions(-) diff --git a/.github/workflows/publish_agent_docker.yml b/.github/workflows/publish_agent_docker.yml index 48134cac..59e73e31 100644 --- a/.github/workflows/publish_agent_docker.yml +++ b/.github/workflows/publish_agent_docker.yml @@ -1,15 +1,9 @@ name: Publish Docker Agent on: - workflow_dispatch: - inputs: - version: - description: version - required: true - type: string - is-latest: - type: boolean - description: latest - required: false + push: + branches: + - v1.7.9 + jobs: docker: runs-on: ubuntu-latest @@ -17,13 +11,13 @@ jobs: - name: Checkout uses: actions/checkout@v2 with: - ref: release + ref: v1.7.9 - name: Login Docker Hub uses: docker/login-action@v1 with: - username: ${{ secrets.DOCKER_HUB_USERNAME }} - password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + username: ${{ secrets.A }} + password: ${{ secrets.B }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 @@ -33,18 +27,18 @@ jobs: with: context: ./ file: ./Dockerfile - build-args: AGENT_VERSION=${{ inputs.version }} + build-args: AGENT_VERSION=1.7.9 builder: ${{ steps.buildx.outputs.name }} push: true - tags: katalonstudio/agent:${{ inputs.version }} + tags: drag0nfire19/katalon-agent:1.7.9 - - name: Build and push Docker images - uses: docker/build-push-action@v2 - if: ${{ inputs.is-latest }} - with: - context: ./ - file: ./Dockerfile - build-args: AGENT_VERSION=${{ inputs.version }} - builder: ${{ steps.buildx.outputs.name }} - push: true - tags: katalonstudio/agent:latest + # - name: Build and push Docker images + # uses: docker/build-push-action@v2 + # if: ${{ inputs.is-latest }} + # with: + # context: ./ + # file: ./Dockerfile + # build-args: AGENT_VERSION=${{ inputs.version }} + # builder: ${{ steps.buildx.outputs.name }} + # push: true + # tags: katalonstudio/agent:latest