Skip to content

Update ci-pipeline.yml #75

Update ci-pipeline.yml

Update ci-pipeline.yml #75

Workflow file for this run

name: CI Pipeline
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:

Check failure on line 12 in .github/workflows/ci-pipeline.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci-pipeline.yml

Invalid workflow file

You have an error in your yaml syntax on line 12
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # Specify your desired Python version
- name: Build Docker Image
run: |
docker build -t emmylong1/devops-interview:v1 .
env:
DOCKER_BUILDKIT: 1 # Enable Docker BuildKit for improved build performance
- name: Push to Docker Hub
run: |
echo "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin
docker push emmylong1/devops-interview:v1