Update docker-image.yml
This commit is contained in:
parent
8c2f3c7602
commit
4c2ebf46a6
1 changed files with 3 additions and 2 deletions
5
.github/workflows/docker-image.yml
vendored
5
.github/workflows/docker-image.yml
vendored
|
@ -16,12 +16,13 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
run: docker build . --file Dockerfile --tag my-image-name:latest
|
run: docker build . --file Dockerfile --tag nvim:latest
|
||||||
- name: Log in to registry
|
- name: Log in to registry
|
||||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
|
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
|
||||||
- name: Push image
|
- name: Push image
|
||||||
run: |
|
run: |
|
||||||
|
IMAGE_NAME="nvim"
|
||||||
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
|
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
|
||||||
TAG=$(date +"%Y-%m-%dT%H-%M")
|
TAG=$(date +"%Y-%m-%dT%H-%M")
|
||||||
docker tag $IMAGE_NAME $IMAGE_ID:$TAG
|
docker tag $IMAGE_NAME:latest $IMAGE_ID:$TAG
|
||||||
docker push $IMAGE_ID:$TAG
|
docker push $IMAGE_ID:$TAG
|
||||||
|
|
Loading…
Reference in a new issue