We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2f0bcb commit fd4970aCopy full SHA for fd4970a
.github/workflows/ci.yml
@@ -45,12 +45,20 @@ jobs:
45
- name: Run tests
46
run: pnpm run test
47
48
+ - name: Login on Container Registry
49
+ uses: docker/login-action@v3
50
+ with:
51
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
52
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
53
+
54
- name: Create tag
55
id: create_tag
56
run: |
57
SHA=$(echo $GITHUB_SHA | head -c7)
58
echo "sha=$SHA" >> $GITHUB_OUTPUT
59
60
- name: Build docker image
- run: docker build -t devops-sample-api-ci:${{ steps.create_tag.outputs.sha }} .
61
+ run: docker build -t rcmonteiro/devops-sample-api-ci:${{ steps.create_tag.outputs.sha }} .
62
63
+ - name: Push image to container registry
64
+ run: docker push rcmonteiro/devops-sample-api-ci:${{ steps.create_tag.outputs.sha }}
0 commit comments