Skip to content

Commit

Permalink
Add proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
quidl committed Aug 5, 2024
1 parent f6bd262 commit b1869bf
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:
- v1.7.9

jobs:
docker:
runs-on: ubuntu-latest
steps:
- 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
Expand All @@ -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

0 comments on commit b1869bf

Please sign in to comment.