Skip to content

feat: add MIT license file #70

feat: add MIT license file

feat: add MIT license file #70

Workflow file for this run

name: Build and push SPA image
on:
push:
branches:
- main
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_REF_TYPE: ${{ github.ref_type }}
GITHUB_REF_NAME: ${{ github.ref_name }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set image tag
id: vars
run: |
if [[ "${GITHUB_REF_TYPE}" == "tag" ]]; then
echo "TAG=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
else
echo "TAG=$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_OUTPUT
fi
- uses: docker/build-push-action@v4
with:
context: frontend
file: frontend/Dockerfile
push: true
tags: skeptrune/jukebox-spa:${{ steps.vars.outputs.TAG }}