Update docker-image.yml

This commit is contained in:
STAM 2020-11-23 20:45:37 +03:00 committed by GitHub
parent 2de02850e3
commit cbd4955e7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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