Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: build docker image to platforms: linux/amd64, linux/arm64 #571

Merged
merged 1 commit into from
May 8, 2024

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