Skip to content

Commit

Permalink
Docker: Add auto push for GitHub packages
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinSRG committed Sep 16, 2023
1 parent de0f508 commit baa19d9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,22 @@ jobs:
- name: Push the Docker image (Latest)
run: docker push asanrom/showdown-chatbot:latest

- name: Docker Login (GitHub Packages)
uses: docker/login-action@v2.1.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Tag version (GitHub Packages)
run: docker tag asanrom/showdown-chatbot:latest ghcr.io/AgustinSRG/showdown-chatbot:$GITHUB_REF_NAME

- name: Tag latest (GitHub Packages)
run: docker tag asanrom/showdown-chatbot:latest ghcr.io/AgustinSRG/showdown-chatbot:latest

- name: Push the Docker image (GitHub Packages) (Current Version)
run: docker push ghcr.io/AgustinSRG/showdown-chatbot:$GITHUB_REF_NAME

- name: Push the Docker image (GitHub Packages) (Latest)
run: docker push ghcr.io/AgustinSRG/showdown-chatbot:latest

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "showdown-chatbot",
"version": "2.8.8",
"version": "2.8.9",
"author": {
"name": "Agustin San Roman",
"email": "agustinsanromanguzman@gmail.com",
Expand Down

0 comments on commit baa19d9

Please sign in to comment.