Skip to content

add enable settings button in tool bar and application menu #140

add enable settings button in tool bar and application menu

add enable settings button in tool bar and application menu #140

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
paths-ignore:
- 'README.md'
- 'LICENSE'
pull_request:
branches: [ "main" ]
paths-ignore:
- '**/README.md'
- 'LICENSE'
workflow_dispatch:
env:
PHOEBUS_RELEASE: v5.0.0
jobs:
build:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Set up Maven settings for GitHub Packages
shell: bash
run: |
mkdir -p ~/.m2
cat > ~/.m2/settings.xml <<EOF
<settings>
<servers>
<server>
<id>github</id>
<username>${{ github.actor }}</username>
<password>${{ secrets.GITHUB_TOKEN }}</password>
</server>
</servers>
</settings>
EOF
- name: Checkout phoebus repo
uses: actions/checkout@v4
with:
repository: ControlSystemStudio/phoebus.git
path: lib/phoebus
ref: ${{ env.PHOEBUS_RELEASE}}
- name: Build phoebus fnal product
run: mvn clean install --batch-mode -DskipTests=true -Ddocs=lib/phoebus/docs
- uses: actions/upload-artifact@v4
with:
name: phoebus-fnal ${{ matrix.os }}
path: .
deploy-containers:
runs-on: [ ubuntu-latest ]
needs: [ build ]
if: github.event_name != 'pull_request'
steps:
- name: Download phoebus build directory
uses: actions/download-artifact@v4
with:
name: phoebus-fnal
path: .
- name: Log in to Docker Registry
uses: docker/login-action@v3
with:
registry: adregistry.fnal.gov
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Docker metadata for containers
id: container-metadata
uses: docker/metadata-action@v5
with:
images: |
adregistry.fnal.gov/epics/alarm-logger
adregistry.fnal.gov/epics/alarm-server
adregistry.fnal.gov/epics/save-and-restore
adregistry.fnal.gov/epics/scan-server
tags: |
type=raw,value=${{ env.IMAGE_VERSION }}
- name: Build Alarm Logger container
uses: docker/build-push-action@v6
with:
context: .
file: containers/Dockerfile.alarmlogger
push: true
tags: adregistry.fnal.gov/epics/alarm-logger:${{ env.PHOEBUS_RELEASE }}_${{ github.run_number }}
labels: ${{ steps.container-metadata.outputs.labels }}
- name: Build Alarm Server container
uses: docker/build-push-action@v6
with:
context: .
file: containers/Dockerfile.alarmserver
push: true
tags: adregistry.fnal.gov/epics/alarm-server:${{ env.PHOEBUS_RELEASE }}_${{ github.run_number }}
labels: ${{ steps.container-metadata.outputs.labels }}
- name: Build Save and Restore container
uses: docker/build-push-action@v6
with:
context: .
file: containers/Dockerfile.saveandrestore
push: true
tags: adregistry.fnal.gov/epics/save-and-restore:${{ env.PHOEBUS_RELEASE }}_${{ github.run_number }}
labels: ${{ steps.container-metadata.outputs.labels }}
- name: Build Save and Restore container
uses: docker/build-push-action@v6
with:
context: .
file: containers/Dockerfile.scanserver
push: true
tags: adregistry.fnal.gov/epics/scan-server:${{ env.PHOEBUS_RELEASE }}_${{ github.run_number }}
labels: ${{ steps.container-metadata.outputs.labels }}