This commit is contained in:
parent
f82e3c157e
commit
d815c976ce
1 changed files with 23 additions and 23 deletions
|
|
@ -2,29 +2,29 @@ name: Build and Push
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Download buildctl
|
- name: Download buildctl
|
||||||
run: |
|
run: |
|
||||||
curl -sSL https://github.com/moby/buildkit/releases/download/v0.15.0/buildkit-v0.15.0.linux-amd64.tar.gz | tar -xz -C /tmp
|
curl -sSL https://github.com/moby/buildkit/releases/download/v0.15.0/buildkit-v0.15.0.linux-amd64.tar.gz | tar -xz -C /tmp
|
||||||
chmod +x /tmp/bin/buildctl
|
chmod +x /tmp/bin/buildctl
|
||||||
|
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
run: |
|
run: |
|
||||||
/tmp/bin/buildctl \
|
/tmp/bin/buildctl \
|
||||||
--addr "$BUILDKIT_HOST" \
|
--addr "$BUILDKIT_HOST" \
|
||||||
--tlscacert /certs/ca.crt \
|
--tlscacert /certs/ca.crt \
|
||||||
--tlscert /certs/tls.crt \
|
--tlscert /certs/tls.crt \
|
||||||
--tlskey /certs/tls.key \
|
--tlskey /certs/tls.key \
|
||||||
build \
|
build \
|
||||||
--frontend dockerfile.v0 \
|
--frontend dockerfile.v0 \
|
||||||
--local context=. \
|
--local context=. \
|
||||||
--local dockerfile=. \
|
--local dockerfile=. \
|
||||||
--output type=image,name=forgejo.monoloco.net/myers/test-build:latest,push=true
|
--output type=image,name=forgejo.monoloco.net/myers/test-build:latest,push=true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue