fix: install kaniko in step instead of using container
This commit is contained in:
parent
46079d91e4
commit
b61ed9aac1
|
|
@ -12,9 +12,6 @@ on:
|
|||
jobs:
|
||||
build-worker:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: gcr.io/kaniko-project/executor:latest
|
||||
options: --user root
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
|
@ -28,6 +25,7 @@ jobs:
|
|||
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
run: |
|
||||
curl -L https://github.com/GoogleContainerTools/kaniko/releases/download/v1.19.2/executor-Linux-amd64.tar.gz | tar -xz -C /usr/local/bin
|
||||
/kaniko/executor \
|
||||
--dockerfile apps/worker/Dockerfile \
|
||||
--context . \
|
||||
|
|
@ -37,9 +35,6 @@ jobs:
|
|||
|
||||
build-api:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: gcr.io/kaniko-project/executor:latest
|
||||
options: --user root
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
|
@ -53,6 +48,7 @@ jobs:
|
|||
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
run: |
|
||||
curl -L https://github.com/GoogleContainerTools/kaniko/releases/download/v1.19.2/executor-Linux-amd64.tar.gz | tar -xz -C /usr/local/bin
|
||||
/kaniko/executor \
|
||||
--dockerfile apps/api/Dockerfile \
|
||||
--context . \
|
||||
|
|
@ -62,9 +58,6 @@ jobs:
|
|||
|
||||
build-web:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: gcr.io/kaniko-project/executor:latest
|
||||
options: --user root
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
|
@ -78,6 +71,7 @@ jobs:
|
|||
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
run: |
|
||||
curl -L https://github.com/GoogleContainerTools/kaniko/releases/download/v1.19.2/executor-Linux-amd64.tar.gz | tar -xz -C /usr/local/bin
|
||||
/kaniko/executor \
|
||||
--dockerfile apps/web/Dockerfile \
|
||||
--context . \
|
||||
|
|
|
|||
Loading…
Reference in New Issue