name: Release docker images on: push: branches: - main - devel jobs: release: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v1 with: ref: ${{ github.ref }} - name: Configure Git run: | git config user.name "$GITHUB_ACTOR" git config user.email "$GITHUB_ACTOR@users.noreply.github.com" - name: Build and push docker images (make image) run: make docker-image env: DOCKER_USER: ${GITHUB_ACTOR} DOCKER_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Logout from dockerhub (make docker-logout) run: make docker-logout