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 + +