Skip to content

Commit 483646a

Browse files
Make copy-railpack-frontend-image job use Railpack version from Railpack builder Dockerfile
1 parent 92a82df commit 483646a

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/copy-railpack-frontend-image.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,27 @@ on:
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
68
jobs:
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

0 commit comments

Comments
 (0)