Skip to content

Commit

Permalink
Merge pull request #4 from Senzing/3.dockter.1
Browse files Browse the repository at this point in the history
3.dockter.1
  • Loading branch information
docktermj authored Sep 28, 2023
2 parents 2632c09 + 2141b54 commit 9d424a1
Show file tree
Hide file tree
Showing 10 changed files with 87 additions and 24 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/make-latest-tag.yaml
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
2 changes: 1 addition & 1 deletion .project
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>
17 changes: 1 addition & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
[markdownlint](https://dlaa.me/markdownlint/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

- Thing 5
- Thing 4

## [1.0.1] - yyyy-mm-dd

### Added to 1.0.1

- Thing 3

### Fixed in 1.0.1

- Thing 2

## [1.0.0] - yyyy-mm-dd
## [0.0.1] - yyyy-mm-dd

### Added to 1.0.0

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ The variables are used throughout the installation procedure.

```console
export GIT_ACCOUNT=senzing
export GIT_REPOSITORY=github-action-docker-buildx
export GIT_REPOSITORY=github-action-docker-buildx-build
```

Synthesize environment variables.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# github-action-docker-buildx
# github-action-docker-buildx-build
60 changes: 60 additions & 0 deletions action.yaml
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
4 changes: 2 additions & 2 deletions docs/README.md
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).
2 changes: 1 addition & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# github-action-docker-buildx development
# github-action-docker-buildx-build development
2 changes: 1 addition & 1 deletion docs/errors.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# github-action-docker-buildx errors
# github-action-docker-buildx-build errors
2 changes: 1 addition & 1 deletion docs/examples.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# github-action-docker-buildx examples
# github-action-docker-buildx-build examples

0 comments on commit 9d424a1

Please sign in to comment.