File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 22 workflow_dispatch :
33 push :
44 branches : [main]
5- paths : [.github/workflows/copy-railpack-frontend-image.yml]
5+ paths :
6+ - .github/workflows/copy-railpack-frontend-image.yml
7+ - builders/railpack/Dockerfile
68jobs :
79 push_to_registry :
810 runs-on : ubuntu-latest
911 name : Copy railpack-frontend image to private registry
1012 steps :
13+ - name : Checkout files
14+ uses : actions/checkout@v6
15+ with :
16+ sparse-checkout : |
17+ builders/railpack/
18+
1119 - name : Log in to container registry
1220 run : docker login -u '${{ secrets.DOCKER_USERNAME }}' -p '${{ secrets.DOCKER_PASSWORD }}' registry.anvil.rcac.purdue.edu
1321
1422 - name : Pull, tag, and push the image
1523 run : |
16- TAG=$(docker pull -q ghcr.io/railwayapp/railpack-frontend:v0.15.2)
24+ VERSION=$(cat builders/railpack/Dockerfile | grep "RAILPACK_VERSION=" | cut -d= -f 2)
25+ TAG=$(docker pull -q ghcr.io/railwayapp/railpack-frontend:v$VERSION)
1726 NEW_TAG=registry.anvil.rcac.purdue.edu/anvilops/railpack-frontend:latest
1827 docker tag $TAG $NEW_TAG
1928 docker push $NEW_TAG
You can’t perform that action at this time.
0 commit comments