irislib / iris-messenger

Decentralized messenger
https://iris.to
MIT License
719 stars 157 forks source link

add workflow to build and push docker image on tag #354

Closed nmfretz closed 1 year ago

nmfretz commented 1 year ago

This PR adds a GitHub Actions workflow to automatically build and push multi-arch (amd64 & arm64) Docker images to a Docker registry when a new git tag is pushed that matches the Semantic Versioning pattern.

For example, this will build/push images when tags like 0.5.0, v0.6.1, 0.2.1-beta, etc are pushed. Two multi-arch images will be pushed to the Docker repository: 1) An image with a tag that is the same as the recently-pushed git tag (e.g., irislib/iris-messenger:v1.0.0) 2) An image with the latest tag (e.g., irislib/iris-messenger:latest)

Here are the GitHub secrets needed for this workflow (for the Docker registry credentials): https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository

This PR is based on this Umbrel workflow: https://github.com/getumbrel/umbrel-manager/blob/fc823490591ea55e26734d144a0527fe9618166d/.github/workflows/on-tag.yml

netlify[bot] commented 1 year ago

Deploy Preview for peppy-haupia-75f472 ready!

Name Link
Latest commit 11f35ebfea3186fa0fb77fa3122e3dd4bff4d0a0
Latest deploy log https://app.netlify.com/sites/peppy-haupia-75f472/deploys/642dc953b8e62d0008990302
Deploy Preview https://deploy-preview-354--peppy-haupia-75f472.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.