CodingGarden / entropychat.app

A discord clone made by the Coding Garden Community.
https://entropychat.app
103 stars 37 forks source link

ISSUE-11: Auto deploy latest docker image #29

Closed nmigueles closed 4 years ago

nmigueles commented 4 years ago

Action to automatically deploy the docker image to Github

This should close #11

Action triggers:

push : branches : master release : types : published

How taggin works:

tag is the "version", ex: docker.pkg.github.com/codinggarden/entropychat.app/entropychat.api:1.0.1, 1.0.1 is the tag.

For pushes to a branch the reference will be refs/heads/{branch-name} and the tag will be {branch-name}. If {branch-name} is master then the tag will be latest.

For git tags the reference will be refs/tags/{git-tag} and the tag will be {git-tag}.

Examples:

Git Reference Image tag
refs/heads/master latest
refs/tags/v1.0.0 v1.0.0

Reference: https://github.com/docker/build-push-action/blob/master/README.md

I have tested the functionality in my fork.