diff options
| author | pml68 <contact@pml68.dev> | 2024-12-17 01:01:50 +0100 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2024-12-17 01:01:50 +0100 |
| commit | 75d9b3c3aa29b0a95142f35de85175e89651db02 (patch) | |
| tree | 0cf69b3617e3bde2fee3d09b895c71a0661e268d /.github | |
| parent | feat: remove CPPFLAGS from `.bashrc` (diff) | |
| download | nvim-75d9b3c3aa29b0a95142f35de85175e89651db02.tar.gz | |
feat: switch to rustup pkg over rust, no-tex becomes base
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/docker.yml | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 7778d04..54ec530 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -7,8 +7,6 @@ on: tags: - v* pull_request: -env: - IMAGE_NAME: neovim jobs: push: @@ -17,11 +15,11 @@ jobs: image: [ { dockerfile: 'Dockerfile', - tag: '' + tag: 'neovim' }, { - dockerfile: 'Dockerfile.no-tex', - tag: 'no-tex-' + dockerfile: 'Dockerfile.tex', + tag: 'neovim-tex' }, ] runs-on: ubuntu-latest @@ -33,21 +31,18 @@ jobs: - uses: actions/checkout@v4 - name: Build image - run: docker build . --file ${{ matrix.image.dockerfile }} --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}" + run: docker build . --file ${{ matrix.image.dockerfile }} --tag ${{ matrix.image.tag }} --label "runnumber=${GITHUB_RUN_ID}" - name: Log in to registry run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - name: Push image - run: | - IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME + run: docker push ${{ matrix.image.tag }} - IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') - TAG=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') - [[ "${{ github.ref }}" == "refs/tags/"* ]] && TAG=$(echo $TAG | sed -e 's/^v//') - [ "$TAG" == "master" ] && TAG="latest" - TAG=${{ matrix.image.tag }}$TAG - echo IMAGE_ID=$IMAGE_ID - echo TAG=$TAG - docker tag $IMAGE_NAME $IMAGE_ID:$TAG - docker push $IMAGE_ID:$TAG + - name: Delete previous releases + uses: actions/delete-package-versions@v5 + with: + package-name: ${{ matrix.image.tag }} + package-type: 'container' + min-versions-to-keep: 0 + delete-only-untagged-versions: 'true' |
