Skip to content

Commit

Permalink
Update oci-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Szwendacz99 committed Oct 28, 2023
1 parent 7545e27 commit aca733c
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/oci-image.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

0 comments on commit aca733c

Please sign in to comment.