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

use docker/build-push-action #244

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

kijuky
Copy link
Contributor

@kijuky kijuky commented Feb 12, 2023

@kijuky kijuky marked this pull request as ready for review February 12, 2023 01:45
@francisdb
Copy link
Collaborator

francisdb commented Feb 15, 2023

The example at https://docs.docker.com/build/ci/github-actions/examples/#test-your-image-before-pushing-it also shows the user of load: true on the build step. I wonder if we need that for the cache to work between both steps.

@@ -98,6 +98,8 @@ jobs:
BASE_IMAGE_TAG=${{ matrix.baseImageTag }}
SBT_VERSION=${{ steps.get_sbt_version.outputs.VERSION }}
SCALA_VERSION=${{ matrix.scalaVersion }}
platforms: ${{ matrix.platforms }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since we only test on the current platform we don't need this
In the example on the docker website there is a comment that explains that the current platform build we be cached and reused in the push step.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like this is also not supported (see build result)

@kijuky kijuky force-pushed the feature/use-github-action branch from 6b73d6f to 8b0c2f6 Compare March 4, 2023 02:49
@francisdb
Copy link
Collaborator

Merging this one to see if it actually works
thanks a lot @kijuky

@francisdb francisdb merged commit e4c309c into sbt:master Mar 7, 2023
@kijuky kijuky deleted the feature/use-github-action branch March 7, 2023 10:27
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