Skip to content

Commit

Permalink
Add docker push to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
CrystalSpore committed Sep 7, 2024
1 parent f7d4064 commit ad834d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ jobs:
- name: Build the Docker image
run: |
docker build . --file Dockerfile --tag ${{secrets.DOCKER_USER}}/digital-ocean-dyndns:$TIMESTAMP && docker build . --file Dockerfile --tag ${{secrets.DOCKER_USER}}/digital-ocean-dyndns:latest
- name: Docker push images
run: docker push --all-tags ${{secrets.DOCKER_USER}}/digital-ocean-dyndns

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ COPY update-dns.sh .

RUN chmod +x *.sh

CMD cron && tail -f /var/log/cron.log
CMD [ cron, tail -f /var/log/cron.log ]

0 comments on commit ad834d5

Please sign in to comment.