Skip to content

Commit

Permalink
Merge pull request #4 from alysbrooks/alys/add-docker-action
Browse files Browse the repository at this point in the history
Create docker-image.yml
  • Loading branch information
alysbrooks authored Oct 18, 2023
2 parents 7a753a2 + 5b06f43 commit 6f015e0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Docker Image CI

on:
pull_request:
push:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
lein: 2.9.1
- 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)

0 comments on commit 6f015e0

Please sign in to comment.