1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-12-15 15:51:32 +03:00
git-cliff/.github/workflows/docker.yml

31 lines
923 B
YAML
Raw Normal View History

name: Docker Automated Builds
2021-06-11 21:41:03 +03:00
on:
push:
branches:
- main
jobs:
docker:
name: Docker
runs-on: ubuntu-20.04
2021-06-11 21:41:03 +03:00
steps:
2021-06-15 00:51:32 +03:00
- name: Checkout
uses: actions/checkout@v2
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