Skip to content

Commit 99c8675

Browse files
authored
Create cd.yml
1 parent 05bfbc9 commit 99c8675

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/cd.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Deploy
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
image_tag:
6+
description: 'Docker image tag'
7+
required: true
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
16+
- name: Log in to Docker Hub
17+
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
22+
- name: Build and push Docker image
23+
uses: docker/build-push-action@v4
24+
with:
25+
context: .
26+
push: true
27+
tags: ${{ secrets.DOCKER_USERNAME }}/microidp:${{ github.event.inputs.image_tag }}

0 commit comments

Comments
 (0)