name: Docker Image CI env: # TODO: Change variable to your image's name. IMAGE_NAME: image on: push: branches: [ master ] tags: - v* pull_request: branches: [ master ] jobs: build: 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 "$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