|
77 | 77 | - name: Checkout repository |
78 | 78 | uses: actions/checkout@v4.2.2 # cache maven packages step - caching maven packages to speed up the build process. Link to the documentation - https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows |
79 | 79 | - name: Cache Maven packages |
80 | | - uses: actions/cache@v3 # defining cache key and restore keys for the cache step. Link to the documentation - https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows#matching-a-cache-key |
| 80 | + uses: actions/cache@v4.1.2 # defining cache key and restore keys for the cache step. Link to the documentation - https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows#matching-a-cache-key |
81 | 81 | with: |
82 | 82 | path: ~/.m2/repository # path to the directory where maven packages are stored - /root/.m2 in the container |
83 | 83 | key: ${{ runner.os }}-build-${{ hashFiles('**/pom.xml') }} |
@@ -160,7 +160,7 @@ jobs: |
160 | 160 | # caching the maven packages to speed up the build process. |
161 | 161 | # Link to the documentation - https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows |
162 | 162 | - name: Cache Maven packages |
163 | | - uses: actions/cache@v3 # using the actions/cache@v3 action to cache the maven packages |
| 163 | + uses: actions/cache@v4.1.2 # defining the cache key and restore keys for the cache step. Link to the documentation - https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows#matching-a-cache-key |
164 | 164 | with: |
165 | 165 | path: /root/.m2 # path to cache |
166 | 166 | key: ${{ runner.os }}-junit-${{ hashFiles('**/pom.xml') }} # key for restoring and saving the cache |
@@ -285,7 +285,7 @@ jobs: |
285 | 285 | # build the docker image using the Dockerfile in the root of the repository |
286 | 286 | # and tag it with the current run number from the github action workflow run |
287 | 287 | - name: Log in to the GH Container Registry |
288 | | - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 # using the docker login action from the github marketplace - github.com/marketplace/actions/docker-login |
| 288 | + uses: docker/login-action@v3.3.0 # using the docker login action from the github marketplace - github.com/marketplace/actions/docker-login |
289 | 289 | with: |
290 | 290 | registry: ${{ env.REGISTRY }} # using the registry environment variable |
291 | 291 | username: ${{ github.actor }} # using the github.actor context |
|
0 commit comments