This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
Build and deploy the image #1142
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: Build and deploy the image | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: '0 8 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build the image | |
run: docker build . --file Dockerfile --tag poc-graphql:latest | |
- name: Publish image to DockerHub | |
uses: elgohr/Publish-Docker-Github-Action@v5 | |
with: | |
name: righettod/poc-graphql | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} |