Skip to content

Commit

Permalink
test docker agent multi platform
Browse files Browse the repository at this point in the history
  • Loading branch information
lydoan1199 committed Jan 11, 2024
1 parent 11991f2 commit cd3b1c6
Showing 1 changed file with 11 additions and 27 deletions.
38 changes: 11 additions & 27 deletions .github/workflows/publish_agent_docker.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
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
steps:
- 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
Expand All @@ -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

0 comments on commit cd3b1c6

Please sign in to comment.