-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cambio de container a Github Registry
- Loading branch information
mxdlx
committed
Dec 3, 2020
1 parent
6ff1717
commit 862c20c
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
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
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() |