-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:UNICT-DMI/Welcome-Bot
- Loading branch information
Showing
4 changed files
with
71 additions
and
43 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 |
---|---|---|
@@ -1,41 +1,11 @@ | ||
name: Create and publish a Docker image | ||
|
||
on: | ||
push: | ||
branches: ['main'] | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
build: | ||
uses: unict-dmi/reusable-workflows/.github/workflows/docker.yml@main | ||
with: | ||
repo_ref: ${{ github.repository }} |
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
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 |
---|---|---|
@@ -1,4 +1,23 @@ | ||
{ | ||
"it": ["Benvenuto USER nel nostro gruppo ^-^","Ciao USER!","Salve USER!"], | ||
"en": ["Welcome USER to our group ^-^","Hello USER!","Howdy USER!"] | ||
} | ||
"it": { | ||
"sentences" : ["Benvenuto USER nel nostro gruppo ^-^","Ciao USER!","Salve USER!"], | ||
"utils" : [ | ||
"Se hai idee o suggerimenti, condividili con noi. Siamo aperti a nuove prospettive", | ||
"Non esitare a fare domande se hai bisogno di aiuto", | ||
"Speriamo che ti possa sentire come a casa tua", | ||
"Ricorda di rispettare le opinioni degli altri membri, anche se non sempre concordi. La diversità ci arricchisce" | ||
], | ||
"start_message": "Ciao! Sono il Welcome-Bot, aggiungimi a un gruppo per dare il benvenuto ai nuovi membri!" | ||
}, | ||
"en": { | ||
"sentences" : ["Welcome USER to our group ^-^","Hello USER!","Howdy USER!"], | ||
"utils" : [ | ||
"If you have ideas or suggestions, please share them with us. We are open to new perspectives!", | ||
"Don't hesitate to ask questions if you need help", | ||
"We hope you can feel at home", | ||
"Remember to respect other members' opinions, even if you don't always agree. Diversity enriches us." | ||
], | ||
"start_message": "Hi! I'm the Welcome-Bot, add me to a group to welcome your new users!" | ||
}, | ||
"readme" : "https://t.me/c/1095167198/67194/67418" | ||
} |
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