From ad834d51909fc658741e42865cc75558fe869d88 Mon Sep 17 00:00:00 2001 From: CrystalSpore Date: Sat, 7 Sep 2024 11:02:01 -0500 Subject: [PATCH] Add docker push to workflow --- .github/workflows/docker-image.yaml | 3 +++ Dockerfile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yaml b/.github/workflows/docker-image.yaml index b8a9ff1..b8a2992 100644 --- a/.github/workflows/docker-image.yaml +++ b/.github/workflows/docker-image.yaml @@ -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 + diff --git a/Dockerfile b/Dockerfile index bd77d31..4b95cd6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 ]