From 0221f378adc56ceaf3edbb4ec03ae631576c4d28 Mon Sep 17 00:00:00 2001 From: nickspizzas Date: Fri, 9 Aug 2024 10:12:44 +0200 Subject: [PATCH] Add latest tag. Remove Cron. Update readme. --- .github/workflows/docker-publish.yml | 7 +++---- README.md | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index fba6e66..1b200e8 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -6,8 +6,6 @@ name: Docker # documentation. on: - schedule: - - cron: '24 0 * * *' push: branches: [ "master" ] # Publish semver tags as releases. @@ -75,12 +73,13 @@ jobs: with: context: . push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} + tags: | + ${{ steps.meta.outputs.tags }} + ${{ github.ref == 'refs/heads/master' && env.REGISTRY }}/{{ env.IMAGE_NAME }}:latest labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max - # Sign the resulting Docker image digest except on PRs. # This will only write to the public Rekor transparency log when the Docker # repository is public to avoid leaking data. If you would like to publish diff --git a/README.md b/README.md index 4ed9b85..14c8be5 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,4 @@ Docker image the contains utils for YAML and JSON processing. ## Usage -`docker run ghcr.io/linkyard/yaml:latest` +`docker run ghcr.io/linkyard/docker-yaml:latest`