Skip to content

Merge branch 'trunk' into release-v4.0.0-rc.8 #62

Merge branch 'trunk' into release-v4.0.0-rc.8

Merge branch 'trunk' into release-v4.0.0-rc.8 #62

name: dockerhub_sshnpd
on:
workflow_dispatch:
push:
tags:
- "v*.*.*"
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
docker:
strategy:
matrix:
include:
- name: sshnpd
dockerfile: ./packages/sshnoports/templates/docker/Dockerfile
- name: activate_sshnpd
dockerfile: ./packages/sshnoports/templates/docker/Dockerfile.activate
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
# verify tags
- uses: ./.github/composite/verify_cli_tags
- name: Set up QEMU
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
- name: Login to Docker Hub
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# Extract version for docker tag
- name: Get version
run: echo "VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
with:
context: .
file: ${{ matrix.dockerfile }}
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
provenance: false
tags: |
atsigncompany/${{ matrix.name }}:${{ env.VERSION }}
atsigncompany/${{ matrix.name }}:release-${{ env.VERSION }}