Skip to content

Commit

Permalink
fix: workflow/ci.yml
Browse files Browse the repository at this point in the history
update branch name

update permissions

update login credentials
  • Loading branch information
Sunny-unik committed Dec 6, 2023
1 parent d4b3dcc commit 53e5ba0
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: Deploy Docker image to GitHub Pages
name: Push Docker image to Github Packages (GHCR)

on:
push:
branches:
- master

jobs:
build-and-deploy:
packaging:
permissions: write-all
runs-on: ubuntu-latest

steps:
Expand All @@ -16,10 +17,8 @@ jobs:
- name: Build Docker image
run: docker build -t ghcr.io/sunny-unik/node-in-docker .

- name: Login to GitHub Container Registry
run: docker login ghcr.io -u Sunny-unik --password ${{ secrets.GITHUB_TOKEN }}

- name: Push Docker image
run: docker push ghcr.io/sunny-unik/node-in-docker

- name: Deploy Docker image to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: .

0 comments on commit 53e5ba0

Please sign in to comment.