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

Change image push method and set tags correctly #287

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ATarrio
Copy link
Collaborator

@ATarrio ATarrio commented Jul 4, 2024

  • Use the build-push action to actually push images instead of doing it with a shell command
  • Use the generated tags to push them to the registries
  • Remove step for setting version, we can just use github_ref_name.
  • Upgrade some actions versions to newer ones (like checkout which was giving a deprecation warning)

@ATarrio ATarrio requested a review from a team as a code owner July 4, 2024 19:23
@ATarrio ATarrio changed the title Fix Docker build workflow (warnings and image tags) Change image push method and set tags correctly Jul 4, 2024
Dockerfile Outdated
Comment on lines 16 to 21
RUN gpg --keyserver https://secchannel.rsk.co/SUPPORT.asc --recv-keys 1DC9157991323D23FD37BAA7A6DBEAC640C5A14B && \
gpg --verify --output SHA256SUMS SHA256SUMS.asc && \
sha256sum --check SHA256SUMS && \
./configure.sh && \
./gradlew --no-daemon clean build -x test && \
cp "build/libs/federate-node-$RSK_VERSION-all.jar" rsk.jar
RUN gpg --keyserver https://secchannel.rsk.co/SUPPORT.asc --recv-keys 1DC9157991323D23FD37BAA7A6DBEAC640C5A14B
RUN gpg --verify --output SHA256SUMS SHA256SUMS.asc
RUN sha256sum --check SHA256SUMS
RUN ./configure.sh
RUN ./gradlew --no-daemon clean build -x test
RUN cp "build/libs/federate-node-$RSK_VERSION-all.jar" rsk.jar
Copy link
Contributor

Choose a reason for hiding this comment

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

Please revert this. There is no reason to generate 6 intermediate layers.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed back

@ATarrio ATarrio force-pushed the chalito/update_docker_workflow branch 3 times, most recently from 3a26c43 to f7f803d Compare July 11, 2024 12:45
@ATarrio ATarrio force-pushed the chalito/update_docker_workflow branch from b60b01e to 52098df Compare August 6, 2024 13:45
Copy link

sonarcloud bot commented Aug 6, 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