From aca5412bf24490926a4da8d11e2af8de200a657e Mon Sep 17 00:00:00 2001 From: Lukas Weber Date: Thu, 4 Jan 2024 13:08:01 +0100 Subject: [PATCH] Fix build to push with latest tag --- .github/workflows/build-image.yml | 4 +++- README.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index a475af5..7515bff 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -18,7 +18,7 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - + - name: Log in to the Container registry uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 with: @@ -31,6 +31,8 @@ jobs: uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=raw,value=latest,enable={{is_default_branch}} - name: Build and push Docker image uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 diff --git a/README.md b/README.md index 6b63313..9af61e2 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ With this docker image, there is no need for that. You simply mount the download ```bash cd downloader - docker run -it -v "$PWD/:/downloader" gcr.io/lukasweber/uupdump-exec + docker run -it -v "$PWD/:/downloader" ghcr.io/lukasweber/uupdump-exec ``` There you go ... :)