Skip to content

Commit

Permalink
add docker hub push ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunny-unik committed Dec 6, 2023
1 parent 53e5ba0 commit 681924e
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master

jobs:
packaging:
GHCR-packaging:
permissions: write-all
runs-on: ubuntu-latest

Expand All @@ -20,5 +20,24 @@ jobs:
- name: Login to GitHub Container Registry
run: docker login ghcr.io -u Sunny-unik --password ${{ secrets.GITHUB_TOKEN }}

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

docker-hub-packaging:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build Docker image
run: docker build -t sunnyunik/node-in-ubuntu:latest

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Push Docker image to Docker Hub
uses: docker push sunnyunik/node-in-ubuntu:latest

0 comments on commit 681924e

Please sign in to comment.