-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump: docker publish to 1.46.3 (#204)
The 1.16.0 publish action does assume that images that are loaded are tagged in a certian way. This is not guaranteed anymore and the newer versions address this (i.e. just using the image name without a tag to retag, though I have no idea how docker internally chooses what image to use. Should not be an issue cuz only one image tag will be loaded anyway) It also required the addition of the login action to facilitate auth against registries --------- Co-authored-by: kubectl <[email protected]>
- Loading branch information
1 parent
653f8c3
commit 3485b11
Showing
2 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,11 @@ on: | |
description: "Publisher to prefix Docker image." | ||
required: true | ||
type: string | ||
docker-registry: | ||
description: "Host where the image should be pushed to." | ||
required: false | ||
type: string | ||
default: "docker.io" | ||
java-distribution: | ||
description: "Java distribution to be installed. (Default is microsoft)" | ||
required: false | ||
|
@@ -144,12 +149,17 @@ jobs: | |
needs: build-jib | ||
|
||
steps: | ||
- name: Publish tarball image | ||
uses: bakdata/ci-templates/actions/[email protected] | ||
- name: Login into docker | ||
uses: docker/login-action@v3 | ||
with: | ||
publisher: ${{ inputs.docker-publisher }} | ||
registry: ${{ inputs.docker-registry }} | ||
username: ${{ secrets.docker-username }} | ||
password: ${{ secrets.docker-password }} | ||
- name: Publish tarball image | ||
uses: bakdata/ci-templates/actions/[email protected] | ||
with: | ||
docker-registry: ${{ inputs.docker-registry }} | ||
image-namespace: ${{ inputs.docker-publisher }} | ||
|
||
release: | ||
name: Create Github release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters