Update oci-image.yml

This commit is contained in:
Maciej Lebiest 2023-10-28 09:32:29 +02:00 committed by GitHub
parent 7545e27aab
commit aca733ca4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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