99 description : ' Release version to tag as latest (e.g., v1.8.4)'
1010 required : true
1111 type : string
12+ tag_reth :
13+ description : ' Tag reth image as latest'
14+ required : false
15+ type : boolean
16+ default : true
17+ tag_op_reth :
18+ description : ' Tag op-reth image as latest'
19+ required : false
20+ type : boolean
21+ default : false
1222
1323env :
14- DOCKER_IMAGE_NAME : ghcr.io/${{ github.repository_owner }}/reth
1524 DOCKER_USERNAME : ${{ github.actor }}
1625
1726jobs :
18- tag-latest :
19- name : Tag release as latest
27+ tag-reth- latest :
28+ name : Tag reth as latest
2029 runs-on : ubuntu-24.04
30+ if : ${{ inputs.tag_reth }}
2131 permissions :
2232 packages : write
2333 contents : read
@@ -26,14 +36,38 @@ jobs:
2636 run : |
2737 echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io --username ${DOCKER_USERNAME} --password-stdin
2838
29- - name : Pull release image
39+ - name : Pull reth release image
3040 run : |
31- docker pull ${DOCKER_IMAGE_NAME} :${{ inputs.version }}
41+ docker pull ghcr.io/${{ github.repository_owner }}/reth :${{ inputs.version }}
3242
33- - name : Tag as latest
43+ - name : Tag reth as latest
3444 run : |
35- docker tag ${DOCKER_IMAGE_NAME} :${{ inputs.version }} ${DOCKER_IMAGE_NAME} :latest
45+ docker tag ghcr.io/${{ github.repository_owner }}/reth :${{ inputs.version }} ghcr.io/${{ github.repository_owner }}/reth :latest
3646
37- - name : Push latest tag
47+ - name : Push reth latest tag
3848 run : |
39- docker push ${DOCKER_IMAGE_NAME}:latest
49+ docker push ghcr.io/${{ github.repository_owner }}/reth:latest
50+
51+ tag-op-reth-latest :
52+ name : Tag op-reth as latest
53+ runs-on : ubuntu-24.04
54+ if : ${{ inputs.tag_op_reth }}
55+ permissions :
56+ packages : write
57+ contents : read
58+ steps :
59+ - name : Log in to Docker
60+ run : |
61+ echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io --username ${DOCKER_USERNAME} --password-stdin
62+
63+ - name : Pull op-reth release image
64+ run : |
65+ docker pull ghcr.io/${{ github.repository_owner }}/op-reth:${{ inputs.version }}
66+
67+ - name : Tag op-reth as latest
68+ run : |
69+ docker tag ghcr.io/${{ github.repository_owner }}/op-reth:${{ inputs.version }} ghcr.io/${{ github.repository_owner }}/op-reth:latest
70+
71+ - name : Push op-reth latest tag
72+ run : |
73+ docker push ghcr.io/${{ github.repository_owner }}/op-reth:latest
0 commit comments