We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1553043 commit 3237d51Copy full SHA for 3237d51
.github/workflows/cd.yml
@@ -0,0 +1,22 @@
1
+name: CD
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - "*"
7
8
+jobs:
9
+ deploy:
10
+ name: Deploy to Docker Hub
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Build and tag Docker image
14
+ run: >-
15
+ export TAG=${${{ github.ref }}##*/}
16
+ echo Building for tag "$TAG"
17
+ docker build -t $IMG_NAME:$TAG .
18
+ docker tag $IMG_NAME:$TAG $IMG_NAME:latest
19
+ echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_LOGIN }}" --password-stdin
20
+ docker push $IMG_NAME
21
+ env:
22
+ - IMG_NAME: mloncode/workshop
0 commit comments