feat: v4 upgrade #118
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Docker image for Private Testnet pricefeed | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
push_to_registry: | |
name: Push Docker image for Private Testnet to ghcr.io | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup variables | |
id: variables | |
run: echo "::set-output name=version::${GITHUB_REF##*/}" | |
- name: Build and Push to Docker Hub | |
uses: docker/build-push-action@v2 | |
with: | |
context: ./projects/pricefeed/ | |
file: ./projects/pricefeed/Dockerfile | |
push: true | |
tags: | | |
ghcr.io/ununifi/pricefeed:test |