2021-06-20 21:27:59 +03:00
|
|
|
name: Docker Automated Builds
|
2021-06-11 21:41:03 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
name: Docker
|
2021-06-15 00:51:32 +03:00
|
|
|
runs-on: ubuntu-18.04
|
2021-06-11 21:41:03 +03:00
|
|
|
steps:
|
2021-06-15 00:51:32 +03:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@main
|
2021-06-11 21:41:03 +03:00
|
|
|
- name: Build
|
|
|
|
run: docker build -t git-cliff .
|
|
|
|
- name: Tag
|
|
|
|
run: |
|
|
|
|
docker tag git-cliff orhunp/git-cliff:latest
|
|
|
|
docker tag git-cliff docker.pkg.github.com/orhun/git-cliff/git-cliff:latest
|
|
|
|
- name: Login (Docker Hub)
|
|
|
|
run: echo ${{ secrets.DOCKERHUB_PASS }} |
|
|
|
|
docker login -u orhunp --password-stdin
|
|
|
|
- name: Push (Docker Hub)
|
|
|
|
run: docker push orhunp/git-cliff: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/git-cliff/git-cliff:latest
|