1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-12-16 02:45:17 +03:00
git-cliff/.github/workflows/docker.yml

31 lines
925 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
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