add restart: on-failure #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: haconfig/ | |
on: | |
push: | |
paths: | |
- 'haconfig/**' | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
push-to-github-cr: | |
name: push image to github container registry | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout the repo | |
uses: actions/checkout@v2 | |
- name: authenticate to gh container registry | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: build & push image | |
uses: docker/[email protected] | |
with: | |
context: ./haconfig | |
push: true | |
tags: ghcr.io/${{ github.repository }}/haconfig:latest |