Skip to content

Deploy

Deploy #14

Workflow file for this run

name: Deploy
on:
workflow_run:
workflows: [Checks]
types:
- completed
push:
branches:
- '*'
jobs:
upload:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@master
- name: Login to Docker Hub
run: echo ${{ secrets.DOCKER_PASS }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
- name: build image
run: docker build -t ${{ secrets.DOCKER_USERNAME }}/myimage .
- name: push to Docker Hub
run: docker push ${{ secrets.DOCKER_USERNAME }}/myimage:latest