aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/main.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 7eb0b72..3f7af43 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -10,6 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
-
+ name: Get current date
+ id: date
+ run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
+ -
name: Checkout
uses: actions/checkout@v2
-
@@ -31,7 +35,9 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
- tags: ${{ secrets.DOCKERHUB_REPOSITORY }}:latest
+ tags: |
+ ${{ secrets.DOCKERHUB_REPOSITORY }}:latest
+ ${{ secrets.DOCKERHUB_REPOSITORY }}:${{ steps.date.outputs.date }}
dockerhub-sync-readme:
needs: dockerhub-build-push
bgstack15