From aca733ca4dcf33e16bd75b18773add52e25a0692 Mon Sep 17 00:00:00 2001 From: Maciej Lebiest <68295743+Szwendacz99@users.noreply.github.com> Date: Sat, 28 Oct 2023 09:32:29 +0200 Subject: [PATCH] Update oci-image.yml --- .github/workflows/oci-image.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/oci-image.yml b/.github/workflows/oci-image.yml index 415bb56..9014c6c 100644 --- a/.github/workflows/oci-image.yml +++ b/.github/workflows/oci-image.yml @@ -1,13 +1,13 @@ -name: Gitea Actions Demo +name: Build neovim image run-name: Build Neovim image yay on: push: branches: [ "main" ] schedule: - - cron: '30 6 */3 * *' + - cron: '30 3 */5 * *' jobs: - Explore-Gitea-Actions: + build-neovim: runs-on: ubuntu-latest steps: - name: Check out repository code @@ -23,7 +23,15 @@ jobs: run: | IMAGE_NAME="neovim" IMAGE_ID="gitea.maciej.cloud/packages/$IMAGE_NAME" - TAG=$(date +"%Y-%m-%d") docker tag $IMAGE_NAME:latest $IMAGE_ID:latest + docker pull $IMAGE_ID:v1 + docker pull $IMAGE_ID:v2 + docker tag $IMAGE_ID:v2 $IMAGE_ID:v3 + docker tag $IMAGE_ID:v1 $IMAGE_ID:v2 + docker tag $IMAGE_ID:latest $IMAGE_ID:v1 docker push $IMAGE_ID:latest - docker tag $IMAGE_ID:latest $IMAGE_ID:$TAG + docker push $IMAGE_ID:v1 + docker push $IMAGE_ID:v2 + docker push $IMAGE_ID:v3 + +