From cbd4955e7d76b4df4123192ac9d7a04e02641333 Mon Sep 17 00:00:00 2001 From: STAM Date: Mon, 23 Nov 2020 20:45:37 +0300 Subject: [PATCH] Update docker-image.yml --- .github/workflows/docker-image.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index bd369e82e..c1d74e2c4 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -5,12 +5,14 @@ env: IMAGE_NAME: image on: - push: - branches: [ master ] + pull_request: + branches: + - '*' tags: - v* - pull_request: - branches: [ master ] + push: + branches: + - 'master' jobs: @@ -23,7 +25,7 @@ jobs: - name: Log into registry #echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin - run: echo "$DOCKER_SERVER_KEY" | docker login -u "$DOCKER_SERVER_LOGIN" --password-stdin + run: echo "${{ secrets.$DOCKER_SERVER_KEY }}" | docker login -u "${{ secrets.$DOCKER_SERVER_LOGIN }}" --password-stdin - name: Build Zabbix Agent run: docker build --compress -t epicmorg/zabbix-agent:latest zabbix/agent