Update docker-image.yml

This commit is contained in:
STAM 2020-11-23 20:36:27 +03:00 committed by GitHub
parent 5d0353bf56
commit 4dc97893fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,8 +6,7 @@ env:
on:
push:
branches: [ master ]
# Publish `v1.2.3` tags as releases.
branches: [ master ]
tags:
- v*
pull_request:
@ -22,10 +21,12 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Zabbix Agent
run: docker build --compress -t epicmorg/zabbix-agent:latest zabbix/agent
- 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
- name: Build Zabbix Agent
run: docker build --compress -t epicmorg/zabbix-agent:latest zabbix/agent
- name: Push Zabbix Agent
run: docker push epicmorg/zabbix-agent:latest