migrate to Gitea actions
This commit is contained in:
parent
a43ea0b121
commit
45e14d2f07
2 changed files with 13 additions and 32 deletions
32
.github/workflows/docker-image.yml
vendored
32
.github/workflows/docker-image.yml
vendored
|
@ -1,32 +0,0 @@
|
|||
name: Docker Image CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
schedule:
|
||||
- cron: '30 4 5,15,25 * *'
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build the Docker image
|
||||
run: docker build . --file Dockerfile --tag neovim:latest
|
||||
- name: Log in to registry
|
||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
|
||||
- name: Push image
|
||||
run: |
|
||||
IMAGE_NAME="neovim"
|
||||
IMAGE_ID="ghcr.io/szwendacz99/$IMAGE_NAME"
|
||||
TAG=$(date +"%Y-%m-%d")
|
||||
docker tag $IMAGE_NAME:latest $IMAGE_ID:latest
|
||||
docker push $IMAGE_ID:latest
|
||||
docker tag $IMAGE_ID:latest $IMAGE_ID:$TAG
|
||||
docker push $IMAGE_ID:$TAG
|
Loading…
Add table
Add a link
Reference in a new issue