File tree Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Original file line number Diff line number Diff line change 19
19
- name : Checkout repository
20
20
uses : actions/checkout@v4
21
21
22
- - name : Set up Docker Buildx
23
- uses : docker/setup-buildx-action@v3
24
-
25
22
- name : Log in to the Container registry
26
23
uses : docker/login-action@v3
27
24
with :
47
44
push : true
48
45
tags : ${{ steps.meta.outputs.tags }}
49
46
labels : ${{ steps.meta.outputs.labels }}
50
- cache-from : type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-buildcache:bc-publish-${{ github.ref_name }}
51
- cache-to : type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-buildcache:bc-publish-${{ github.ref_name }},mode=max
Original file line number Diff line number Diff line change @@ -3,17 +3,12 @@ name: Docker test build
3
3
on :
4
4
pull_request :
5
5
6
- env :
7
- REGISTRY : ghcr.io
8
- IMAGE_NAME : ${{ github.repository }}
9
-
10
6
concurrency :
11
7
group : ${{ github.workflow }}-${{ github.ref }}
12
8
cancel-in-progress : true
13
9
14
10
permissions :
15
11
contents : read
16
- packages : write
17
12
18
13
jobs :
19
14
build-image :
@@ -30,22 +25,10 @@ jobs:
30
25
- name : Checkout repository
31
26
uses : actions/checkout@v4
32
27
33
- - name : Set up Docker Buildx
34
- uses : docker/setup-buildx-action@v3
35
-
36
- - name : Log in to the Container registry
37
- uses : docker/login-action@v3
38
- with :
39
- registry : ${{ env.REGISTRY }}
40
- username : ${{ github.actor }}
41
- password : ${{ secrets.GITHUB_TOKEN }}
42
-
43
28
- name : Test docker image build (local development)
44
29
uses : docker/build-push-action@v6
45
30
with :
46
31
context : .
47
32
push : false
48
33
build-args : |
49
34
REQ_FILE=requirements/${{ matrix.req_file }}
50
- cache-from : type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-buildcache:bc-test-build-${{ matrix.req_file }}
51
- cache-to : type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-buildcache:bc-test-build-${{ matrix.req_file }},mode=max
You can’t perform that action at this time.
0 commit comments