Merge pull request #8 from Y0ngg4n/dependabot/npm_and_yarn/braces-3.0.3 #170
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: Push to Dockerhub | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
push-to-dockerhub: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
- uses: actions/checkout@v2 | |
- name: Build and push | |
id: docker_build | |
uses: docker/build-push-action@v2 | |
with: | |
context: ./ | |
file: ./Dockerfile | |
push: true | |
tags: yonggan/horus:latest | |
- name: Image digest | |
run: echo ${{ steps.docker_build.outputs.digest }} |