4
4
push :
5
5
branches :
6
6
- main
7
- pull_request :
7
+ - testing
8
8
workflow_dispatch :
9
9
10
10
jobs :
@@ -24,37 +24,27 @@ jobs:
24
24
with :
25
25
fetch-depth : 0
26
26
27
- # - name: Log in to Docker Hub
28
- # uses: docker/login-action@v3
29
- # with:
30
- # username: ${{ secrets.DOCKER_USERNAME }}
31
- # password: ${{ secrets.DOCKER_PASSWORD }}
32
-
33
27
- name : Login to Github Packages
34
28
uses : docker/login-action@v3
35
29
with :
36
30
registry : ghcr.io
37
31
username : ${{ github.actor }}
38
32
password : ${{ secrets.GITHUB_TOKEN }}
39
-
33
+
40
34
- name : Extract Docker Metadata
41
35
id : meta
42
36
uses : docker/metadata-action@v5
43
37
with :
44
38
flavor : |
45
39
suffix=-${{ matrix.python-version }}
46
40
tags : |
47
- type=schedule
48
41
type=ref,event=branch
49
- type=ref,event=tag
50
- type=ref,event=pr
51
- type=raw,value=${{ matrix.python-version }},suffix=,enable={{is_default_branch}}
52
- type=raw,value=latest,suffix=,enable=${{ github.ref_name == github.event.repository.default_branch && matrix.python-version == '3.8' }}
53
- type=edge,branch=main
42
+ type=raw,value=${{ github.ref_name }}
43
+ type=raw,value=latest,suffix=,enable=${{ github.ref_name == github.event.repository.default_branch }}
54
44
images : |
55
45
name=${{ secrets.DOCKER_USERNAME }}/python-base-eval-layer,enable=false
56
46
name=ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}
57
-
47
+
58
48
- name : Build and Push Base Image
59
49
uses : docker/build-push-action@v5
60
50
with :
66
56
INVOKER_ID=${{ secrets.INVOKER_ID }}
67
57
INVOKER_KEY=${{ secrets.INVOKER_KEY }}
68
58
INVOKER_REGION=${{ secrets.INVOKER_REGION }}
59
+
60
+ # name: Build and Push to DockerHub Registry
61
+ # runs-on: ubuntu-latest
62
+
63
+ # steps:
64
+ # - name: Checkout
65
+ # uses: actions/checkout@v2
66
+
67
+ # - name: Log in to Docker Hub
68
+ # uses: docker/login-action@v1
69
+ # with:
70
+ # username: ${{ secrets.DOCKER_USERNAME }}
71
+ # password: ${{ secrets.DOCKER_PASSWORD }}
72
+
73
+ # - name: Build and Push Base Image
74
+ # uses: docker/build-push-action@v2
75
+ # with:
76
+ # push: true
77
+ # tags: ${{ secrets.DOCKER_USERNAME }}/python-base-eval-layer
78
+ # build-args: |
79
+ # INVOKER_ID=${{ secrets.INVOKER_ID }}
80
+ # INVOKER_KEY=${{ secrets.INVOKER_KEY }}
81
+ # INVOKER_REGION=${{ secrets.INVOKER_REGION }}
0 commit comments