Skip to content

Commit

Permalink
publsih
Browse files Browse the repository at this point in the history
  • Loading branch information
quidl committed Sep 25, 2023
1 parent 3078113 commit 73e25d4
Showing 1 changed file with 7 additions and 26 deletions.
33 changes: 7 additions & 26 deletions .github/workflows/publish_agent_docker.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,31 @@
name: Publish Agent Docker
on:
workflow_dispatch:
inputs:
version:
description: version
required: true
type: string
is-latest:
type: boolean
description: latest
required: false
push:
branches:
- qtest3

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

- 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

- name: Build and push Docker images
uses: docker/build-push-action@v2
with:
context: ./
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 }}
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: katalonstudio/agent:latest
tags: drag0nfire19/katalon-agent:1.7.8,drag0nfire19/katalon-agent:latest

0 comments on commit 73e25d4

Please sign in to comment.