Skip to content

Conversation

milesibastos
Copy link
Contributor

Sugestão de build automatizado das imagens amd64 e arm64.
Esse exemplo usa o próprio GitHub como register para as imagens.
Esse é o resultado final: https://github.com/stack-app-br/evolution-api/pkgs/container/evolution-api

PS: Precisa atualizar o DOCKER_TAG se vcs resolverem adotar essa abordagem.
Enviar para o docker hub também não é muito diferente.

push: true
- name: set docker tag
run: |
echo "DOCKER_TAG=ghcr.io/stack-app-br/evolution-api:$GIT_REF" >> $GITHUB_ENV
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "DOCKER_TAG=ghcr.io/stack-app-br/evolution-api:$GIT_REF" >> $GITHUB_ENV
echo "DOCKER_TAG=ghcr.io/EvolutionAPI/evolution-api:$GIT_REF" >> $GITHUB_ENV

- name: replace docker tag if main
if: github.ref_name == 'main'
run: |
echo "DOCKER_TAG=ghcr.io/stack-app-br/evolution-api:latest" >> $GITHUB_ENV
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "DOCKER_TAG=ghcr.io/stack-app-br/evolution-api:latest" >> $GITHUB_ENV
echo "DOCKER_TAG=ghcr.io/EvolutionAPI/evolution-api:latest" >> $GITHUB_ENV

@DavidsonGomes DavidsonGomes changed the base branch from main to develop May 8, 2024 14:01
@DavidsonGomes DavidsonGomes merged commit 7a0149e into EvolutionAPI:develop May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants