Skip to content

Commit

Permalink
Publish agent docker for test
Browse files Browse the repository at this point in the history
  • Loading branch information
quidl committed Nov 29, 2023
1 parent 17d863e commit de4be96
Showing 1 changed file with 19 additions and 25 deletions.
44 changes: 19 additions & 25 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
on:
workflow_dispatch:
inputs:
version:
description: version
required: true
type: string
is-latest:
type: boolean
description: latest
required: false
push:
branches:
- qtest

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: release
ref: qtest

- 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 @@ -33,18 +27,18 @@ jobs:
with:
context: ./
file: ./Dockerfile
build-args: AGENT_VERSION=${{ inputs.version }}
build-args: AGENT_VERSION=2.0.0
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: katalonstudio/agent:${{ inputs.version }}
tags: drag0nfire19/katalon-agent:2.0.0

- 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: drag0nfire19/katalon-agent:latest

0 comments on commit de4be96

Please sign in to comment.