Update docker-main-images.yml

This commit is contained in:
STAM 2020-11-23 21:02:10 +03:00 committed by GitHub
parent 2b6b72b807
commit d90956b590
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,28 +14,17 @@ on:
- 'master'
jobs:
login:
build1:
name: Forked and fixed images
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Log into registry
#echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
run: echo "${{ secrets.DOCKER_SERVER_KEY }}" | docker login -u "${{ secrets.DOCKER_SERVER_LOGIN }}" --password-stdin
build:
runs-on: ubuntu-20.04
needs: login
steps:
- uses: actions/checkout@v2
- name: Build Zabbix Agent
run: docker build --compress -t epicmorg/zabbix-agent:latest zabbix/agent
deploy:
runs-on: ubuntu-20.04
needs: build
steps:
- name: Push Zabbix Agent
run: docker push epicmorg/zabbix-agent:latest