Update module github.com/go-git/go-git/v5 to v5.9.0 #31
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
on: | |
pull_request: | |
types: [opened, reopened] | |
workflow_dispatch: | |
jobs: | |
build-git-workflows: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
name: checkout | |
- name: source-version | |
id: source-version | |
run: echo "version=$(cat version)-devel" >> $GITHUB_OUTPUT | |
- uses: mr-smithers-excellent/docker-build-push@v6 | |
name: push-container-image | |
with: | |
image: go-git-workflows #todo rename to git-workflows | |
registry: ghcr.io | |
username: ${{ github.repository }} | |
password: ${{ secrets.GHCR_TOKEN }} | |
dockerfile: Containerfile | |
directory: . | |
addLatest: false | |
tags: ${{ steps.source-version.outputs.version }}-devel | |
buildArgs: VERSION="${{ steps.source-version.outputs.version }}-$(git rev-parse --short HEAD)" | |
notify: | |
name: Slack Notifications | |
runs-on: ubuntu-latest | |
if: ${{ failure() }} | |
needs: | |
- build-git-workflows | |
steps: | |
- name: Notify Slack channel on failure | |
uses: rtCamp/action-slack-notify@v2 | |
env: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
SLACK_ICON: https://avatars.githubusercontent.com/u/74975412?s=200&v=4 | |
SLACK_USERNAME: ${{ github.repository }} | |
SLACK_COLOR: '#ff0033' | |
SLACK_FOOTER: '' |