Skip to content

Commit 0a46ebc

Browse files
committed
ci: add custom docker push ci
1 parent 23997ad commit 0a46ebc

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/docker-push.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: docker-push
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
path:
6+
description: 'Path'
7+
required: true
8+
default: '/redqueen-memshell-party'
9+
tag:
10+
description: "Tag"
11+
required: true
12+
default: "redqueen"
13+
jobs:
14+
docker-push:
15+
name: Docker Push
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Login to Docker Hub
20+
uses: docker/login-action@v3
21+
with:
22+
registry: docker.io
23+
username: ${{ vars.DOCKERHUB_USERNAME }}
24+
password: ${{ secrets.DOCKERHUB_TOKEN }}
25+
26+
- name: Set up QEMU
27+
uses: docker/setup-qemu-action@v3
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v3
30+
31+
- name: Build and push RedQueen
32+
uses: docker/build-push-action@v6
33+
with:
34+
context: .
35+
platforms: linux/amd64,linux/arm64
36+
build-args: |
37+
ROUTE_ROOT_PATH=${{ inputs.path }}
38+
CONTEXT_PATH=${{ inputs.path }}
39+
push: true
40+
tags: |
41+
docker.io/reajason/memshell-party:${{ inputs.tag }}

0 commit comments

Comments
 (0)