Skip to content

Commit

Permalink
Add publish action.
Browse files Browse the repository at this point in the history
There are not clear instructions for doing it this way.
  • Loading branch information
Alys Brooks committed Oct 18, 2023
1 parent 6f015e0 commit 6350817
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.ref_name}}
- name: Log in to GitHub's Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish the Docker image
run: docker push ghcr.io/alysbrooks/pronouns.alysbrooks.com:${{ github.ref_name}}

0 comments on commit 6350817

Please sign in to comment.