Skip to content

Commit

Permalink
docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvanprakash committed Jun 7, 2024
1 parent 89388bb commit 6017747
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 22 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/lint_and_test.yaml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Docker CD Pipeline

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Dependencies
working-directory: exercise_3
run: |
pip install -r requirements.txt
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
-
name: Build and push
working-directory: exercise_3
uses: docker/build-push-action@v5
with:
push: true
tags: user/app:latest

0 comments on commit 6017747

Please sign in to comment.