Skip to content

Commit

Permalink
remove saving built image to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
Szwendacz99 committed Oct 9, 2023
1 parent a43ea0b commit 34b1eee
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ "main" ]
schedule:
- cron: '30 4 5,15,25 * *'
- cron: '30 4 */3 * *'

jobs:

Expand All @@ -19,14 +19,3 @@ jobs:
- 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

0 comments on commit 34b1eee

Please sign in to comment.