From 8052a76c0eedb3b4231d7001940b81dc1b8ec671 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Wed, 1 May 2024 01:16:43 -0400 Subject: [PATCH] testing --- .forgejo/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index d0d73fc1..d8eda723 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -24,12 +24,21 @@ jobs: username: ${{ secrets.USERNAME }} password: ${{ secrets.TOKEN }} + - name: Docker meta + id: meta + uses: https://github.com/docker/metadata-action@v5 + with: + images: git.nadeko.net/fijxu/invidious + tags: | + type=sha,format=short,prefix={{date 'YYYY.MM.DD'}}-,enable=${{ github.ref == format('refs/heads/{0}', 'master') }} + type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }} + - uses: https://code.forgejo.org/docker/build-push-action@v5 name: Build images with: context: . file: docker/Dockerfile - tags: git.nadeko.net/fijxu/invidious:latest + tags: ${{ steps.meta.outputs.tags }} platforms: linux/amd64 push: true build-args: |