File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed
Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Docker Image CI
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - uses : actions/checkout@v4
13+ - name : Set up Docker Buildx
14+ uses : docker/setup-buildx-action@v3
15+ - name : Login to GitHub Container Registry
16+ uses : docker/login-action@v3
17+ with :
18+ registry : ghcr.io
19+ username : ${{ github.actor }}
20+ password : ${{ secrets.GITHUB_TOKEN }}
21+ - name : Get commit ID
22+ id : vars
23+ run : echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
24+ - name : Build and push Docker image
25+ id : push
26+ uses : docker/build-push-action@v5
27+ with :
28+ context : .
29+ push : true
30+ platforms : linux/amd64
31+ tags : ghcr.io/diamondlightsource/dlstbx:latest,ghcr.io/diamondlightsource/dlstbx:${{ steps.vars.outputs.sha_short }}
Original file line number Diff line number Diff line change 1- FROM harbor.diamond.ac.uk/dockerhub-cache/ dials/dials:latest
1+ FROM dials/dials:latest
22
33RUN yum install bzip2 libXxf86vm rrdtool git -y
44RUN pip install patchelf
You can’t perform that action at this time.
0 commit comments