main | Merge pull request #46 from starsep/nix-profile nix profile install example #11
Workflow file for this run
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: main | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
push: | |
branches: [master] | |
run-name: ${{ github.workflow }} | ${{ github.event.pull_request.number }} ${{ github.event.pull_request.title || github.event.head_commit.message }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
run: docker build --tag lazamar/nix-package-versions:latest . | |
working-directory: ./ | |
- name: Test | |
run: docker run lazamar/nix-package-versions:latest ./utils.sh test | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Upload to Docker Hub | |
if: github.ref_name == 'master' | |
run: docker push lazamar/nix-package-versions:latest |