Skip to content

Commit

Permalink
Adding Docker build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarna Parekh authored and Zarna Parekh committed Jul 31, 2024
1 parent b714979 commit 8107b38
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build and Push Docker Image CI

on:
push:
branches: [ "airbnb-main" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: |
airbnb/airtrace:latest
airbnb/airtrace:${{ github.sha }}

0 comments on commit 8107b38

Please sign in to comment.