Skip to content

Commit 7397b7a

Browse files
authored
Update more github actions (#4004)
1 parent da7a278 commit 7397b7a

File tree

2 files changed

+11
-67
lines changed

2 files changed

+11
-67
lines changed

.github/workflows/backend-checks.yml

-56
Original file line numberDiff line numberDiff line change
@@ -41,59 +41,3 @@ jobs:
4141
STRIPE_WEBHOOK_SIGNATURE_SECRET: ""
4242
CELERY_BROKER_URL: ""
4343
CELERY_RESULT_BACKEND: ""
44-
45-
# check-building-container:
46-
# runs-on: ubuntu-latest
47-
# defaults:
48-
# run:
49-
# working-directory: backend
50-
51-
# steps:
52-
# - uses: actions/checkout@v4
53-
# - name: Set up Docker Buildx
54-
# id: buildx
55-
# uses: docker/setup-buildx-action@v2
56-
# - name: Cache Docker layers
57-
# uses: actions/cache@v2
58-
# with:
59-
# path: /tmp/.buildx-cache
60-
# key: ${{ runner.os }}-buildx-${{ matrix.service.name }}
61-
# - name: Build test
62-
# uses: docker/[email protected]
63-
# with:
64-
# context: ./backend
65-
# file: ./backend/Dockerfile
66-
# builder: ${{ steps.buildx.outputs.name }}
67-
# provenance: false
68-
# push: false
69-
# cache-from: type=local,src=/tmp/.buildx-cache
70-
# cache-to: type=local,dest=/tmp/.buildx-cache
71-
# platforms: linux/amd64
72-
73-
# check-building-arm-container:
74-
# runs-on: [self-hosted]
75-
# defaults:
76-
# run:
77-
# working-directory: backend
78-
79-
# steps:
80-
# - uses: actions/checkout@v4
81-
# - name: Set up Docker Buildx
82-
# id: buildx
83-
# uses: docker/setup-buildx-action@v2
84-
# - name: Cache Docker layers
85-
# uses: actions/cache@v2
86-
# with:
87-
# path: /tmp/.buildx-cache
88-
# key: ${{ runner.os }}-buildx-${{ matrix.service.name }}-arm
89-
# - name: Build test
90-
# uses: docker/[email protected]
91-
# with:
92-
# context: ./backend
93-
# file: ./backend/Dockerfile
94-
# builder: ${{ steps.buildx.outputs.name }}
95-
# provenance: false
96-
# push: false
97-
# cache-from: type=local,src=/tmp/.buildx-cache
98-
# cache-to: type=local,dest=/tmp/.buildx-cache
99-
# platforms: linux/arm64

.github/workflows/deploy.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -93,30 +93,30 @@ jobs:
9393
fi
9494
- name: Set up QEMU dependency
9595
if: ${{ steps.image.outputs.image_exists == 0 }}
96-
uses: docker/setup-qemu-action@v2
96+
uses: docker/setup-qemu-action@v3
9797
- name: Login to GitHub Packages
9898
if: ${{ steps.image.outputs.image_exists == 0 }}
99-
uses: docker/login-action@v2
99+
uses: docker/login-action@v3
100100
with:
101101
registry: ghcr.io
102102
username: ${{ github.actor }}
103103
password: ${{ secrets.GITHUB_TOKEN }}
104104
- name: Login to Amazon ECR
105105
if: ${{ steps.image.outputs.image_exists == 0 }}
106-
uses: aws-actions/amazon-ecr-login@v1
106+
uses: aws-actions/amazon-ecr-login@v2
107107
- name: Set up Docker Buildx
108108
id: buildx
109109
if: ${{ steps.image.outputs.image_exists == 0 }}
110-
uses: docker/setup-buildx-action@v2
110+
uses: docker/setup-buildx-action@v3
111111
- name: Cache Docker layers
112112
if: ${{ steps.image.outputs.image_exists == 0 }}
113-
uses: actions/cache@v2
113+
uses: actions/cache@v4
114114
with:
115115
path: /tmp/.buildx-cache
116116
key: ${{ runner.os }}-buildx-${{ matrix.service.name }}
117117
- name: Build and push
118118
if: ${{ steps.image.outputs.image_exists == 0 }}
119-
uses: docker/build-push-action@v4.0.0
119+
uses: docker/build-push-action@v6
120120
with:
121121
context: ./${{ matrix.service.dir }}
122122
file: ./${{ matrix.service.dir }}/Dockerfile
@@ -170,24 +170,24 @@ jobs:
170170
fi
171171
- name: Set up QEMU dependency
172172
if: ${{ steps.image.outputs.image_exists == 0 }}
173-
uses: docker/setup-qemu-action@v2
173+
uses: docker/setup-qemu-action@v3
174174
- name: Login to GitHub Packages
175175
if: ${{ steps.image.outputs.image_exists == 0 }}
176-
uses: docker/login-action@v2
176+
uses: docker/login-action@v3
177177
with:
178178
registry: ghcr.io
179179
username: ${{ github.actor }}
180180
password: ${{ secrets.GITHUB_TOKEN }}
181181
- name: Login to Amazon ECR
182182
if: ${{ steps.image.outputs.image_exists == 0 }}
183-
uses: aws-actions/amazon-ecr-login@v1
183+
uses: aws-actions/amazon-ecr-login@v2
184184
- name: Set up Docker Buildx
185185
id: buildx
186186
if: ${{ steps.image.outputs.image_exists == 0 }}
187-
uses: docker/setup-buildx-action@v2
187+
uses: docker/setup-buildx-action@v3
188188
- name: Build and push
189189
if: ${{ steps.image.outputs.image_exists == 0 }}
190-
uses: docker/build-push-action@v4.0.0
190+
uses: docker/build-push-action@v6
191191
with:
192192
context: ./${{ matrix.service.dir }}
193193
file: ./${{ matrix.service.dir }}/Dockerfile

0 commit comments

Comments
 (0)