tls connection to chaincode server (#29) #1
Workflow file for this run
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
name: Release | |
on: | |
workflow_dispatch: # workflow_dispatch must be enabled in main branch to support release action on older release branches | |
push: | |
tags: | |
- 'v*' | |
env: | |
GO_VER: 1.22.4 | |
UBUNTU_VER: 20.04 | |
APP_VER: ${{ github.ref_name }} | |
permissions: | |
contents: read | |
jobs: | |
build-and-push-docker-images: | |
name: Build and Push | |
runs-on: 'ubuntu-20.04' | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
buildkitd-flags: --debug | |
config-inline: | | |
[worker.oci] | |
max-parallelism = 1 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Login to the docker.com Container Registry | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: scientificideas/acl | |
tags: | | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
type=semver,pattern={{major}}.{{minor}}.{{patch}} | |
- name: Build and push acl Image | |
id: push | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
tags: ${{ steps.meta.outputs.tags }} | |
push: ${{ github.event_name != 'pull_request' }} | |
labels: ${{ steps.meta.outputs.labels }} | |
build-args: | | |
APP_VER=${{ env.APP_VER }} | |
UBUNTU_VER=${{ env.UBUNTU_VER }} | |
GO_VER=${{ env.GO_VER }} |