Skip to content

Commit

Permalink
Merge pull request #5 from alysbrooks/add-github-upload
Browse files Browse the repository at this point in the history
Add publish action.
  • Loading branch information
alysbrooks authored Oct 18, 2023
2 parents 6f015e0 + 0f2c6c0 commit 5c5b091
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,12 @@ jobs:
- name: Build Uberjar
run: lein uberjar
- name: Build the Docker image
run: docker build . --file Dockerfile --tag pronouns.alysbrooks.com:latest --tag pronouns.alysbrooks.com:${{ github.ref_name }} --tag pronouns.alysbrooks.com:$(date +%s)
run: docker build . --file Dockerfile --tag pronouns.alysbrooks.com:latest --tag pronouns.alysbrooks.com:${{ github.ref_name }} --tag pronouns.alysbrooks.com:$(date +%s) --tag ghcr.io/alysbrooks/pronouns.alysbrooks.com:${{ github.sha}}
- name: Log in to GitHub's Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish the Docker image
run: docker push ghcr.io/alysbrooks/pronouns.alysbrooks.com:${{ github.sha}}

0 comments on commit 5c5b091

Please sign in to comment.