Skip to content

Commit

Permalink
Add image upload to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
lazamar committed Apr 7, 2024
1 parent 9e4e008 commit 5f0672a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,18 @@ jobs:
uses: actions/checkout@v2

- name: Build
run: docker build --tag nix-package-versions .
run: docker build --tag lazamar/nix-package-versions:latest .
working-directory: ./

- name: Test
run: docker run nix-package-versions ./utils.sh 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

0 comments on commit 5f0672a

Please sign in to comment.