diff options
| author | pml68 <contact@pml68.dev> | 2025-01-14 19:06:02 +0100 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-01-14 19:06:02 +0100 |
| commit | cb6d983c6cbb34dadfbaa0445fd229c8a50f394b (patch) | |
| tree | a82cd169e5552c2fb051a967c7305ebad67a9654 /.github | |
| parent | feat: update telescope find_files settings (diff) | |
| download | nvim-cb6d983c6cbb34dadfbaa0445fd229c8a50f394b.tar.gz | |
refactor: workflow input matrix structure
Diffstat (limited to '')
| -rw-r--r-- | .github/workflows/docker.yml | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 003f919..2325d26 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -14,16 +14,11 @@ jobs: push: strategy: matrix: - image: [ - { - dockerfile: 'Dockerfile', + include: + - dockerfile: 'Dockerfile' tag: 'neovim' - }, - { - dockerfile: 'Dockerfile.tex', + - dockerfile: 'Dockerfile.tex' tag: 'neovim-tex' - }, - ] runs-on: ubuntu-latest permissions: packages: write @@ -40,23 +35,23 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Build image + - name: Build uses: docker/build-push-action@v6 with: - file: ${{ matrix.image.dockerfile }} + file: ${{ matrix.dockerfile }} cache-from: type=gha cache-to: type=gha,mode=max load: true tags: | - ghcr.io/${{ github.repository_owner }}/${{ matrix.image.tag }}:latest + ghcr.io/${{ github.repository_owner }}/${{ matrix.tag }}:latest - - name: Push image - run: docker push ghcr.io/${{ github.repository_owner }}/${{ matrix.image.tag }}:latest + - name: Push + run: docker push ghcr.io/${{ github.repository_owner }}/${{ matrix.tag }}:latest - name: Delete previous releases uses: actions/delete-package-versions@v5 with: - package-name: ${{ matrix.image.tag }} + package-name: ${{ matrix.tag }} package-type: 'container' min-versions-to-keep: 0 delete-only-untagged-versions: 'true' |
