fix: install kaniko in step instead of using container
This commit is contained in:
parent
46079d91e4
commit
b61ed9aac1
|
|
@ -12,9 +12,6 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build-worker:
|
build-worker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: gcr.io/kaniko-project/executor:latest
|
|
||||||
options: --user root
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -28,6 +25,7 @@ jobs:
|
||||||
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
run: |
|
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 \
|
/kaniko/executor \
|
||||||
--dockerfile apps/worker/Dockerfile \
|
--dockerfile apps/worker/Dockerfile \
|
||||||
--context . \
|
--context . \
|
||||||
|
|
@ -37,9 +35,6 @@ jobs:
|
||||||
|
|
||||||
build-api:
|
build-api:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: gcr.io/kaniko-project/executor:latest
|
|
||||||
options: --user root
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -53,6 +48,7 @@ jobs:
|
||||||
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
run: |
|
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 \
|
/kaniko/executor \
|
||||||
--dockerfile apps/api/Dockerfile \
|
--dockerfile apps/api/Dockerfile \
|
||||||
--context . \
|
--context . \
|
||||||
|
|
@ -62,9 +58,6 @@ jobs:
|
||||||
|
|
||||||
build-web:
|
build-web:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: gcr.io/kaniko-project/executor:latest
|
|
||||||
options: --user root
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -78,6 +71,7 @@ jobs:
|
||||||
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
run: |
|
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 \
|
/kaniko/executor \
|
||||||
--dockerfile apps/web/Dockerfile \
|
--dockerfile apps/web/Dockerfile \
|
||||||
--context . \
|
--context . \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue