Skip to content

Docker Automated Builds #158

Docker Automated Builds

Docker Automated Builds #158

Workflow file for this run

name: Docker Automated Builds
on:
push:
branches:
- master
schedule:
- cron: "0 0 * * 0"
jobs:
docker:
name: Docker
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@master
- name: Build
run: |
docker build -f docker/cli/Dockerfile -t godsays .
docker build -f docker/server/Dockerfile -t godsays-server .
- name: Tag
run: |
docker tag godsays orhunp/godsays:latest
docker tag godsays docker.pkg.github.com/orhun/godsays/godsays:latest
docker tag godsays-server orhunp/godsays-server:latest
docker tag godsays-server docker.pkg.github.com/orhun/godsays/godsays-server:latest
- name: Login (Docker Hub)
run: |
echo ${{ secrets.DOCKERHUB_TOKEN }} |
docker login -u orhunp --password-stdin
- name: Push (Docker Hub)
run: |
docker push orhunp/godsays:latest
docker push orhunp/godsays-server:latest
- name: Login (Package Registry)
run: |
echo ${{ secrets.GITHUB_TOKEN }} |
docker login -u orhun docker.pkg.github.com --password-stdin
- name: Push (Package Registry)
run: |
docker push docker.pkg.github.com/orhun/godsays/godsays:latest
docker push docker.pkg.github.com/orhun/godsays/godsays-server:latest