Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Build and deploy the image #842

Build and deploy the image

Build and deploy the image #842

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 }}