Skip to content

Merge pull request #4 from alysbrooks/alys/add-docker-action #8

Merge pull request #4 from alysbrooks/alys/add-docker-action

Merge pull request #4 from alysbrooks/alys/add-docker-action #8

Workflow file for this run

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)