Merge pull request #2 from ivorashkov/ivorashkov-patch-2

Update pipeline.yml
This commit is contained in:
IvayloRashkov 2025-02-17 17:01:35 +02:00 committed by GitHub
commit 9285caa6a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,5 @@
name:CI-Build
name: CI-Build
on:
pull_request:
types: [closed]
@ -24,15 +25,15 @@ jobs:
restore-keys: |
${{ runner.os }}-buildx-
- name: Log in Docker Hub Container Registry
- name: Log in to Docker Hub Container Registry
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
username: ${{ vars.DOCKERHUB_USERNAME }} # Ensure your Docker Hub username is stored as a secret
password: ${{ secrets.DOCKERHUB_TOKEN }} # Ensure your Docker Hub token is stored as a secret
- name: Build and push in Docker Hub Registry
- name: Build and push Docker image to Docker Hub Registry
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: user/app:latest
tags: user/app:latest # Replace 'user/app' with your Docker Hub repository name