2024-06-24 09:25:59 +08:00
|
|
|
name: 'Docker build and push'
|
|
|
|
description: 'Setup docker, build image and push'
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
password:
|
|
|
|
description: 'Password or personal access token used to log against the Docker registry'
|
|
|
|
required: false
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: 'composite'
|
|
|
|
steps:
|
2024-06-24 09:34:35 +08:00
|
|
|
- run: echo a: Set up QEMU
|
2024-06-24 09:25:59 +08:00
|
|
|
|
2024-06-24 09:34:35 +08:00
|
|
|
- run: echo b: Login to DockerHub
|
2024-06-24 09:25:59 +08:00
|
|
|
if: ${{ inputs.password != '' }}
|
|
|
|
|
2024-06-24 09:34:35 +08:00
|
|
|
- run: |
|
|
|
|
sleep 10
|
|
|
|
echo c: Set up Docker BuildX
|