2121 fetch-depth : 0
2222 submodules : ' recursive'
2323
24- # - uses: fresh2dev/hostbutter@4e3f5065f9cc1cd24dcc3184fbbf601f48075eb3
24+ # - uses: fresh2dev/hostbutter@01f6cc2ffa2f916e237c458d1641314aed3d15bb
2525 # - uses: ./
26- - uses : https://gitea.local.hostbutter.net/fresh2dev/hostbutter@4e3f5065f9cc1cd24dcc3184fbbf601f48075eb3
26+ - uses : https://gitea.local.hostbutter.net/fresh2dev/hostbutter@01f6cc2ffa2f916e237c458d1641314aed3d15bb
2727 with :
2828 github-token : ${{ secrets.EGET_GITHUB_TOKEN }}
2929
8181 submodules : ' recursive'
8282
8383 # ## Checkout
84- # - uses: fresh2dev/hostbutter@4e3f5065f9cc1cd24dcc3184fbbf601f48075eb3
84+ # - uses: fresh2dev/hostbutter@01f6cc2ffa2f916e237c458d1641314aed3d15bb
8585 # - uses: ./
86- - uses : https://gitea.local.hostbutter.net/fresh2dev/hostbutter@4e3f5065f9cc1cd24dcc3184fbbf601f48075eb3
86+ - uses : https://gitea.local.hostbutter.net/fresh2dev/hostbutter@01f6cc2ffa2f916e237c458d1641314aed3d15bb
8787
8888 - name : Dump github context
8989 run : echo "$GITHUB_CONTEXT"
9292 GITHUB_CONTEXT : ${{ toJson(github) }}
9393
9494 - name : Dump env context
95- run : echo "$env_context"
95+ run : echo "$env_context"
9696 shell : bash
9797 env :
9898 env_context : ${{ tojson(env) }}
@@ -115,9 +115,8 @@ jobs:
115115 platforms : linux/amd64 # ,linux/arm64
116116 tags : |
117117 ${{ env.PRIVATE_REGISTRY_DEV }}/${{ github.repository }}${{ matrix.image_suffix }}:${{ env.CI_COMMIT_SHORT_SHA }}
118- # TODO: try to implement docker build cache again when Gitea 1.22 or 1.23 is released:
119- # cache-from: type=gha,url=${{ env.ACTIONS_CACHE_URL }},token=${{ env.ACTIONS_RUNTIME_TOKEN }}
120- # cache-to: type=gha,mode=max,url=${{ env.ACTIONS_CACHE_URL }},token=${{ env.ACTIONS_RUNTIME_TOKEN }}
118+ cache-from : type=gha,url=${{ env.ACTIONS_CACHE_URL }},token=${{ env.ACTIONS_RUNTIME_TOKEN }}
119+ cache-to : type=gha,mode=max,url=${{ env.ACTIONS_CACHE_URL }},token=${{ env.ACTIONS_RUNTIME_TOKEN }}
121120
122121 - name : Push image to Prod Registry
123122 if : >
@@ -143,9 +142,9 @@ jobs:
143142 submodules : ' recursive'
144143
145144 # ## Checkout
146- # - uses: fresh2dev/hostbutter@4e3f5065f9cc1cd24dcc3184fbbf601f48075eb3
145+ # - uses: fresh2dev/hostbutter@01f6cc2ffa2f916e237c458d1641314aed3d15bb
147146 # - uses: ./
148- - uses : https://gitea.local.hostbutter.net/fresh2dev/hostbutter@4e3f5065f9cc1cd24dcc3184fbbf601f48075eb3
147+ - uses : https://gitea.local.hostbutter.net/fresh2dev/hostbutter@01f6cc2ffa2f916e237c458d1641314aed3d15bb
149148
150149 - if : >
151150 endsWith(github.repository, '/hostbutter')
@@ -164,35 +163,3 @@ jobs:
164163 run : |
165164 butter --site $HOSTBUTTER_SITE_PROD stack up
166165
167- # promote-image:
168- # if: >
169- # github.ref_type == 'tag'
170- # needs: ['build-publish-image']
171- # runs-on: 'ubuntu-latest'
172- # env:
173- # SRC_REGISTRY: registry.local.hostbutter.net
174- # strategy:
175- # matrix:
176- # image_name:
177- # - ${{ github.repository }}
178- # public_registry:
179- # - docker.io
180- # - ghcr.io
181- # fail-fast: true
182- # steps:
183- # ### Checkout
184- # - name: Check out repository code
185- # uses: actions/checkout@v4
186- # with:
187- # fetch-depth: 0
188- # submodules: 'recursive'
189- #
190- # ### Checkout
191- # # - uses: fresh2dev/hostbutter@4e3f5065f9cc1cd24dcc3184fbbf601f48075eb3
192- # # - uses: ./
193- # - uses: https://gitea.local.hostbutter.net/fresh2dev/hostbutter@4e3f5065f9cc1cd24dcc3184fbbf601f48075eb3
194- #
195- # - name: Push image to Cloud Registries on tag
196- # run: |
197- # docker buildx imagetools create --tag ${{ matrix.public_registry }}/${{ matrix.image_name }}:$CI_PROJECT_VERSION \
198- # ${{ env.SRC_REGISTRY }}/${{ matrix.image_name }}:$CI_COMMIT_SHORT_SHA
0 commit comments