Skip to content

feat: add github actions #11 #4

feat: add github actions #11

feat: add github actions #11 #4

Workflow file for this run

name: Build Docker Image
on:
push:
branches:
- main
jobs:
github:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Login to github registry
uses: actions-hub/docker/login@master
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_REGISTRY_URL: docker.pkg.github.com
- name: Build :latest
if: success()
run: docker build -t docker.pkg.github.com/${{ github.repository }}/app:latest .
- name: Push to docker hub :latest
if: success()
uses: actions-hub/docker@master
with:
args: push docker.pkg.github.com/${{ github.repository }}:latest