From cd3b1c61497172172fd654e7b09383071690d35e Mon Sep 17 00:00:00 2001 From: lydoan1199 Date: Thu, 11 Jan 2024 10:53:24 +0700 Subject: [PATCH] test docker agent multi platform --- .github/workflows/publish_agent_docker.yml | 38 +++++++--------------- 1 file changed, 11 insertions(+), 27 deletions(-) diff --git a/.github/workflows/publish_agent_docker.yml b/.github/workflows/publish_agent_docker.yml index 48134cac..e92dae8f 100644 --- a/.github/workflows/publish_agent_docker.yml +++ b/.github/workflows/publish_agent_docker.yml @@ -1,15 +1,9 @@ -name: Publish Docker Agent +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: + - ltest + jobs: docker: runs-on: ubuntu-latest @@ -17,13 +11,13 @@ jobs: - name: Checkout uses: actions/checkout@v2 with: - ref: release + ref: ltest - 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 @@ -32,19 +26,9 @@ jobs: uses: docker/build-push-action@v2 with: context: ./ + platforms: linux/amd64, linux/arm64 file: ./Dockerfile - build-args: AGENT_VERSION=${{ inputs.version }} - builder: ${{ steps.buildx.outputs.name }} - push: true - tags: katalonstudio/agent:${{ inputs.version }} - - - 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 }} + build-args: AGENT_VERSION=2.0.1 builder: ${{ steps.buildx.outputs.name }} push: true - tags: katalonstudio/agent:latest + tags: drag0nfire24/katalon-agent:2.0.2