Skip to content

Commit 4b60e17

Browse files
committed
remove: action cache
1 parent 017bcfc commit 4b60e17

File tree

2 files changed

+9
-47
lines changed

2 files changed

+9
-47
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
- uses: actions/checkout@v3
1414
with:
1515
submodules: 'true'
16-
1716
- name: Get current date
1817
id: date
1918
run: echo "today=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
@@ -24,23 +23,13 @@ jobs:
2423
- name: Set up Docker Buildx
2524
id: buildx
2625
uses: docker/setup-buildx-action@v2
27-
28-
- name: Cache Docker layers
29-
uses: actions/cache@v3
30-
with:
31-
path: /tmp/.buildx-cache
32-
key: ${{ runner.os }}-buildx-${{ github.sha }}
33-
restore-keys: |
34-
${{ runner.os }}-buildx-
35-
3626
- name: Available platforms
37-
run: echo ${{ steps.buildx.outputs.platforms }}
38-
27+
run: echo ${{ steps.buildx.outputs.platforms }}
3928
- name: Login to DockerHub
4029
uses: docker/login-action@v2
4130
with:
42-
username: ${{ secrets.DOCKERHUB_USERNAME }}
43-
password: ${{ secrets.DOCKERHUB_TOKEN }}
31+
username: ${{ secrets.DOCKERHUB_USERNAME }}
32+
password: ${{ secrets.DOCKERHUB_TOKEN }}
4433

4534
- name: Build and push
4635
uses: docker/build-push-action@v4
@@ -52,14 +41,6 @@ jobs:
5241
tags: |
5342
${{ github.repository }}:${{ steps.date.outputs.today }}
5443
${{ github.repository }}:${{ contains(github.ref,'main') && 'latest' || github.ref_name }}
55-
cache-from: type=local,src=/tmp/.buildx-cache
56-
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
57-
58-
- name: Move cache
59-
run: |
60-
rm -rf /tmp/.buildx-cache
61-
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
62-
6344
- name: Docker Hub Description
6445
uses: peter-evans/dockerhub-description@v3
6546
with:

.github/workflows/tag.yaml

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
name: Docker Image CI
2-
1+
name: Docker Image CI Tag
32
on:
43
push:
54
tags:
@@ -12,8 +11,8 @@ jobs:
1211
- uses: actions/checkout@v3
1312
with:
1413
submodules: 'true'
15-
16-
- name: Get version
14+
15+
- name: Get version
1716
id: vars
1817
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
1918

@@ -23,23 +22,13 @@ jobs:
2322
- name: Set up Docker Buildx
2423
id: buildx
2524
uses: docker/setup-buildx-action@v2
26-
27-
- name: Cache Docker layers
28-
uses: actions/cache@v3
29-
with:
30-
path: /tmp/.buildx-cache
31-
key: ${{ runner.os }}-buildx-${{ github.sha }}
32-
restore-keys: |
33-
${{ runner.os }}-buildx-
34-
3525
- name: Available platforms
36-
run: echo ${{ steps.buildx.outputs.platforms }}
37-
26+
run: echo ${{ steps.buildx.outputs.platforms }}
3827
- name: Login to DockerHub
3928
uses: docker/login-action@v2
4029
with:
41-
username: ${{ secrets.DOCKERHUB_USERNAME }}
42-
password: ${{ secrets.DOCKERHUB_TOKEN }}
30+
username: ${{ secrets.DOCKERHUB_USERNAME }}
31+
password: ${{ secrets.DOCKERHUB_TOKEN }}
4332

4433
- name: Build and push
4534
uses: docker/build-push-action@v4
@@ -51,14 +40,6 @@ jobs:
5140
tags: |
5241
${{ github.repository }}:${{ steps.vars.outputs.tag }}
5342
${{ github.repository }}:latest
54-
cache-from: type=local,src=/tmp/.buildx-cache
55-
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
56-
57-
- name: Move cache
58-
run: |
59-
rm -rf /tmp/.buildx-cache
60-
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
61-
6243
- name: Docker Hub Description
6344
uses: peter-evans/dockerhub-description@v3
6445
with:

0 commit comments

Comments
 (0)