Skip to content

main | Merge pull request #45 from starsep/docker COPY files as late as possible in Dockerfile #10

main | Merge pull request #45 from starsep/docker COPY files as late as possible in Dockerfile

main | Merge pull request #45 from starsep/docker COPY files as late as possible in Dockerfile #10

Workflow file for this run

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