Skip to content

Commit

Permalink
docker-image: Set a secret key
Browse files Browse the repository at this point in the history
Signed-off-by: Panchajanya1999 <[email protected]>
  • Loading branch information
Panchajanya1999 committed Mar 14, 2024
1 parent 58c7420 commit 71738bb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,13 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build -f Dockerfile . -t panchajanya1999/archlinux:latest && echo '86abc7fb-21f7-4d31-a622-baf52d49f41f' | docker login -u 'panchajanya1999' --password-stdin && docker push panchajanya1999/archlinux:latest
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: 'panchajanya1999'
password: ${{ secrets.PASSWORD }}

- name: Build and push Docker image
run: |
docker build -f Dockerfile . -t panchajanya1999/archlinux:latest
docker push panchajanya1999/archlinux:latest

0 comments on commit 71738bb

Please sign in to comment.