11name : galaxy-ui
22
3+ # Workflow is triggered manually only.
34on :
4- push :
5- branches :
6- - " main"
7- paths :
8- - " .github/workflows/galaxy-ui.yml"
9- - " machines/eb-app-ui/Dockerfile"
10- - " machines/eb-app-ui/home/ui/galaxy-dev/**"
5+ workflow_dispatch :
116
127env :
138 CONTEXT : galaxy-ui
@@ -24,15 +19,31 @@ jobs:
2419
2520 steps :
2621 - name : Checkout
27- uses : actions/checkout@v4
22+ uses : actions/checkout@v6
2823
29- - name : Custom metadata
24+ - name : Set up QEMU
25+ uses : docker/setup-qemu-action@v4
26+
27+ - name : Set up Docker Buildx
28+ uses : docker/setup-buildx-action@v4
29+ with :
30+ driver-opts : |
31+ memory=4g
32+
33+ - name : Login to GHCR
34+ uses : docker/login-action@v4
35+ with :
36+ registry : ${{ env.REGISTRY }}
37+ username : ${{ github.repository_owner }}
38+ password : ${{ secrets.GITHUB_TOKEN }}
39+
40+ - name : Get Version
3041 run : |
3142 echo "BUILD_DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
3243 echo ${{ env.REGISTRY }}/${{ github.repository }}/${{ env.CONTEXT }}
3344
3445 - name : Metadata
35- uses : docker/metadata-action@v5
46+ uses : docker/metadata-action@v6
3647 id : meta
3748 with :
3849 images : |
@@ -41,17 +52,13 @@ jobs:
4152 type=raw,value=latest
4253 type=raw,value=v${{ env.BUILD_DATE }}
4354
44- - name : Login
45- uses : docker/login-action@v3
46- with :
47- registry : ${{ env.REGISTRY }}
48- username : ${{ github.repository_owner }}
49- password : ${{ secrets.GITHUB_TOKEN }}
50-
5155 - name : Build and push
52- uses : docker/build-push-action@v5
56+ uses : docker/build-push-action@v7
5357 with :
5458 context : ./machines/${{ env.MACHINE }}
5559 push : true
60+ platforms : linux/amd64,linux/arm64
5661 tags : ${{ steps.meta.outputs.tags }}
5762 labels : ${{ steps.meta.outputs.labels }}
63+ cache-from : type=gha
64+ cache-to : type=gha,mode=max
0 commit comments