Use globset to specify src for nix-snapshotter #80
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CD | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish-image: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: read | |
strategy: | |
matrix: | |
image: | |
- hello | |
- redis | |
- redisWithShell | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Nix | |
uses: ./.github/actions/setup-nix | |
- name: Log in to the Container registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Push ${{ matrix.image }} image | |
run: nix run .#push-${{ matrix.image }} | |