Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mpvaldez committed Jun 7, 2024
1 parent fdc353b commit b47fd63
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# version 1.0
name: Build and push
on:
push:
tags:
- '*'

jobs:
work:
name: Work
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v2
- name: Lowercase
id: lower
uses: ASzc/change-string-case-action@v1
with:
string: ${{ github.repository }}
- name: Build & Push docker image
uses: mr-smithers-excellent/docker-build-push@v4
with:
image: ${{ steps.lower.outputs.lowercase }}
registry: ghcr.io
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Notify Slack
uses: craftech-io/slack-action@v1
with:
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK }}
if: always()

0 comments on commit b47fd63

Please sign in to comment.