Skip to content

Commit

Permalink
Merge pull request #2 from airbnb/zarna1parekh-docker-workflow
Browse files Browse the repository at this point in the history
Docker Image Build workflow
  • Loading branch information
zarna1parekh authored Jul 17, 2024
2 parents b714979 + 34ea4c8 commit 569dfbf
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build and PushDocker Image CI

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

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: Set up Docker
uses: docker/setup-docker@v2
with:
version: '20.10.7'

- 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: |
# myapp:latest
# myapp:${{ github.sha }}

0 comments on commit 569dfbf

Please sign in to comment.