Skip to content

sshnp_docker_demo_base #14

sshnp_docker_demo_base

sshnp_docker_demo_base #14

name: sshnp_docker_demo_base
on:
schedule:
- cron: '35 11 * * 5' # 11 35 on friday
workflow_dispatch:
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2.2.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55 # v2.10.0
- name: Login to DockerHub
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 # v4.1.1
with:
file: sshnp_docker_demo/demo-base/Dockerfile
push: true
tags: |
atsigncompany/sshnp_docker_demo_base:latest
atsigncompany/sshnp_docker_demo_base:GHA${{ github.run_number }}
platforms: |
linux/amd64
linux/arm64/v8