Update Review2024: Terminals card info + text corrections again #1227
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Publish Docker Images | |
on: | |
push: | |
branches: | |
- alpha | |
jobs: | |
# | |
# # # # # # # # # # # # # # # # # # # # # | |
# # # # # # # # # # # # # # # # # # # # # | |
website-frontend: | |
name: frontend (NextJS) | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Set module key | |
run: | | |
echo "MODULE_KEY=frontend" >> $GITHUB_ENV | |
- name: Checkout repository | |
uses: actions/checkout@main | |
- name: Calculate module SHA256 hash | |
run: | | |
find "./${{ env.MODULE_KEY }}" -type f -print0 | sort -z | xargs -0 sha256sum | sha256sum | cut -d' ' -f1 > ${{ env.MODULE_KEY }}.hash | |
echo "SHA256_HASH=$(cat ${{ env.MODULE_KEY }}.hash)" >> $GITHUB_ENV | |
- name: Fetch hash cache | |
uses: actions/cache@v4 | |
id: cache | |
with: | |
path: ${{ env.MODULE_KEY }}.hash | |
key: ${{ github.ref_name }}-${{ env.MODULE_KEY }}-${{ env.SHA256_HASH }} | |
- name: Login to GitHub Container Registry | |
if: steps.cache.outputs.cache-hit != 'true' | |
uses: docker/login-action@master | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and Push Docker Image | |
if: steps.cache.outputs.cache-hit != 'true' | |
uses: docker/build-push-action@master | |
with: | |
push: true | |
context: ./${{ env.MODULE_KEY }} | |
file: ./${{ env.MODULE_KEY }}/Dockerfile | |
tags: ghcr.io/carrismetropolitana/website-${{ env.MODULE_KEY }}:${{ github.ref_name }} |