Update oci-image.yml
This commit is contained in:
parent
7545e27aab
commit
aca733ca4d
1 changed files with 13 additions and 5 deletions
18
.github/workflows/oci-image.yml
vendored
18
.github/workflows/oci-image.yml
vendored
|
@ -1,13 +1,13 @@
|
||||||
name: Gitea Actions Demo
|
name: Build neovim image
|
||||||
run-name: Build Neovim image yay
|
run-name: Build Neovim image yay
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '30 6 */3 * *'
|
- cron: '30 3 */5 * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
build-neovim:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
|
@ -23,7 +23,15 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
IMAGE_NAME="neovim"
|
IMAGE_NAME="neovim"
|
||||||
IMAGE_ID="gitea.maciej.cloud/packages/$IMAGE_NAME"
|
IMAGE_ID="gitea.maciej.cloud/packages/$IMAGE_NAME"
|
||||||
TAG=$(date +"%Y-%m-%d")
|
|
||||||
docker tag $IMAGE_NAME:latest $IMAGE_ID:latest
|
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 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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue