-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Senzing/3.dockter.1
3.dockter.1
- Loading branch information
Showing
10 changed files
with
87 additions
and
24 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: make-latest-tag.yaml | ||
|
||
on: | ||
push: | ||
tags: | ||
- "[0-9]+.[0-9]+.[0-9]+" | ||
|
||
jobs: | ||
make-go-tag: | ||
name: Make a latest tag | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: "0" | ||
- name: Run latest-tag | ||
uses: EndBug/latest-tag@latest |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>github-action-docker-buildx</name> | ||
<name>github-action-docker-buildx-build</name> | ||
</projectDescription> |
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
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
# github-action-docker-buildx | ||
# github-action-docker-buildx-build |
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# github-action-docker-buildx-build.yml | ||
name: Run docker buildx build | ||
description: Prepare the environment and run docker buildx build. | ||
author: support@senzing.com | ||
|
||
inputs: | ||
dockerBuildOptions: | ||
description: Additional options to pass to docker buildx build | ||
dockerContext: | ||
default: "." | ||
description: Context (directory) of the docker build process | ||
dockerImageRepository: | ||
description: Docker repository (e.g. senzing/senzingapi-runtime) | ||
required: true | ||
dockerImageTag: | ||
default: ${{ github.ref_name }} | ||
description: Docker image tag | ||
dockerPassword: | ||
default: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
description: Password for Docker registry | ||
dockerPlatforms: | ||
default: linux/amd64 | ||
description: Comma-separated list of docker platforms to build (hint - See output of docker buildx ls) | ||
dockerRegistryServer: | ||
default: docker.io | ||
description: Docker registry server | ||
dockerUsername: | ||
default: ${{ secrets.DOCKERHUB_USERNAME }} | ||
description: Username for Docker registry | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: "0" | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Docker list platforms | ||
run: docker buildx ls | ||
shell: bash | ||
- name: Dockerhub login | ||
run: echo ${{ inputs.dockerPassword }} | docker login -u ${{ inputs.dockerUsername }} --password-stdin ${{ inputs.dockerRegistryServer }} | ||
shell: bash | ||
- name: Docker build images | ||
run: | | ||
docker buildx build \ | ||
--platform ${{ inputs.dockerPlatforms }} \ | ||
--tag ${{ inputs.dockerRegistryServer }}/${{ inputs.dockerImageRepository }}:${{ inputs.dockerImageTag }} \ | ||
--tag ${{ inputs.dockerRegistryServer }}/${{ inputs.dockerImageRepository }}:latest \ | ||
${{ inputs.dockerBuildOptions }} \ | ||
${{ inputs.dockerContext }} | ||
shell: bash | ||
|
||
branding: | ||
icon: upload-cloud | ||
color: green |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# github-action-docker-buildx | ||
# github-action-docker-buildx-build | ||
|
||
Placeholder for [GitHub pages](https://pages.github.com/). | ||
|
||
See [https://hub.senzing.com/github-action-docker-buildx](https://hub.senzing.com/github-action-docker-buildx). | ||
See [https://hub.senzing.com/github-action-docker-buildx-build](https://hub.senzing.com/github-action-docker-buildx-build). |
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 |
---|---|---|
@@ -1 +1 @@ | ||
# github-action-docker-buildx development | ||
# github-action-docker-buildx-build development |
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 |
---|---|---|
@@ -1 +1 @@ | ||
# github-action-docker-buildx errors | ||
# github-action-docker-buildx-build errors |
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 |
---|---|---|
@@ -1 +1 @@ | ||
# github-action-docker-buildx examples | ||
# github-action-docker-buildx-build examples |