Skip to content

Commit b7d43ec

Browse files
committed
Added Manual docker build workflow
1 parent 69d65ae commit b7d43ec

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Docker Build Manual
2+
3+
on:
4+
push:
5+
branches:
6+
- "manual-docker"
7+
workflow_dispatch:
8+
inputs:
9+
version:
10+
description: "Docker image version tag (e.g. v1.2.3)"
11+
required: true
12+
13+
jobs:
14+
docker-build:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- uses: docker/setup-qemu-action@v3
21+
- uses: docker/setup-buildx-action@v3
22+
23+
- name: Login to DockerHub
24+
uses: docker/login-action@v3
25+
with:
26+
username: ${{ secrets.DOCKERHUB_USERNAME }}
27+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
28+
29+
- name: Build and push image
30+
uses: docker/build-push-action@v6
31+
with:
32+
context: .
33+
file: ./Dockerfile
34+
push: true
35+
platforms: linux/amd64,linux/arm64
36+
tags: |
37+
veridise/audithub-client:latest
38+
veridise/audithub-client:${{ inputs.version }}
39+
cache-from: type=gha
40+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)