Skip to content

chore: 🔨 Update GitHub Actions #4602

chore: 🔨 Update GitHub Actions

chore: 🔨 Update GitHub Actions #4602

Workflow file for this run

name: 🐳 CI - Docker Image
on:
push:
branches: [main]
pull_request:
branches: [main, develop]
repository_dispatch:
types: [create-pull-request]
jobs:
docker:
if: github.repository == 'Anselmoo/spectrafit'
# Only if Dockerfile is changed
name: 🐳 Docker Image Build
runs-on: ubuntu-latest
steps:
- name: 🛎️ Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- name: 🗂️ Filter Dockerfile changes
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
with:
filters: |
docker:
- 'Dockerfile'
- name: 🏗️ Build the Docker image for AMD64
run: |
docker build . --file Dockerfile --tag spectrafit:$(date +%s)
# - name: 🏗️ Build the Docker image for ARM64
# run: |
# docker build . --file Dockerfile --tag spectrafit-arm64:$(date +%s) --platform linux/arm64