44 push :
55 branches :
66 - main
7- pull_request :
7+ - testing
88 workflow_dispatch :
99
1010jobs :
@@ -24,37 +24,27 @@ jobs:
2424 with :
2525 fetch-depth : 0
2626
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-
3327 - name : Login to Github Packages
3428 uses : docker/login-action@v3
3529 with :
3630 registry : ghcr.io
3731 username : ${{ github.actor }}
3832 password : ${{ secrets.GITHUB_TOKEN }}
39-
33+
4034 - name : Extract Docker Metadata
4135 id : meta
4236 uses : docker/metadata-action@v5
4337 with :
4438 flavor : |
4539 suffix=-${{ matrix.python-version }}
4640 tags : |
47- type=schedule
4841 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 }}
5444 images : |
5545 name=${{ secrets.DOCKER_USERNAME }}/python-base-eval-layer,enable=false
5646 name=ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}
57-
47+
5848 - name : Build and Push Base Image
5949 uses : docker/build-push-action@v5
6050 with :
6656 INVOKER_ID=${{ secrets.INVOKER_ID }}
6757 INVOKER_KEY=${{ secrets.INVOKER_KEY }}
6858 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