Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightChaser committed Feb 2, 2024
1 parent beac6ac commit de85f70
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and release to DockerHub
with:
context: .
env:
NAME: knightchaser # DockerHub account name
REPO: goanonpicdb-aws # DockerHub repository name
run: |
docker build --tag $REPO ./Dockerfile
docker tag $REPO:latest $NAME/$REPO:latest
docker build --tag $NAME/$REPO .
docker tag $NAME/$REPO:latest $NAME/$REPO:latest
docker push $NAME/$REPO:latest

0 comments on commit de85f70

Please sign in to comment.