Skip to content

Commit

Permalink
Merge pull request #7 from rubenmartinm/fix/deploy-package
Browse files Browse the repository at this point in the history
Fix/deploy package
  • Loading branch information
rubenmartinm authored Mar 26, 2024
2 parents bc9d015 + 318e59d commit 2136f97
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
name: Build and Publish Docker Image

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
build-and-publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -20,8 +22,13 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.PAT_YT_PODCAST }}

- name: Build Docker image
run: docker build -t ghcr.io/${{ github.actor }}/${{ github.repository }}:latest .
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Push Docker image to GitHub Container Registry
run: docker push ghcr.io/${{ github.actor }}/${{ github.repository }}:latest
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/${{ github.actor }}/${{ github.repository }}:latest

0 comments on commit 2136f97

Please sign in to comment.