Skip to content

Commit

Permalink
Update docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ak2466 authored Apr 5, 2024
1 parent 6dd0bf4 commit 5665a5d
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build and push image
run: |
docker login --username ${{secrets.USERNAME}} --password ${{secrets.GH_PAT}} ghcr.io
docker build . --tag ghcr.io/ak2466/plantpals:latest
docker push ghcr.io/ak2466/plantpals:latest
-
name: Checkout the repository
uses: actions/checkout@v4

-
name: Log into GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{secrets.GH_USERNAME}}
password: ${{secrets.GHCR_PW}}

0 comments on commit 5665a5d

Please sign in to comment.