We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05bfbc9 commit 99c8675Copy full SHA for 99c8675
.github/workflows/cd.yml
@@ -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