Skip to content

Commit

Permalink
update deploy.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza-cskn committed Sep 16, 2023
1 parent cfd3efd commit 76120e6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy-blog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ on:
jobs:
deploy-if-tests-pass:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write
if: ${{ github.event.workflow_run.conclusion == 'success' }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Login to GitHub Packages
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Build and push Docker image
run: |
docker build -t ghcr.io/${{ github.repository }}:${{ github.sha }} blog/
Expand Down

0 comments on commit 76120e6

Please sign in to comment.