Skip to content

Commit

Permalink
Update default.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
EmirShimshir authored Nov 18, 2023
1 parent 67ce04a commit ce517fc
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,38 @@ env:
TAG: latest

jobs:
build-and-push:
name: Build and Push
runs-on: ubuntu-latest

steps:
- name: Check out the repo
uses: actions/checkout@v2
with:
ref: main

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}

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

- name: Push to Docker Hub app image
uses: docker/build-push-action@v2
with:
context: .
file: ./dockerfile
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/${{ env.APP_IMAGE }}:${{ env.TAG }}

deploy:
name: Deploy
runs-on: ubuntu-latest

needs: build-and-push

steps:
- name: Check out the repo
uses: actions/checkout@v2
Expand Down

0 comments on commit ce517fc

Please sign in to comment.