Skip to content

Commit

Permalink
Update gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bill88t committed Jul 21, 2024
1 parent 6e3f6e9 commit 4dfe01e
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
- cron: '0 0 * * *'
workflow_dispatch:


jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -18,6 +17,9 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: '--allow-insecure-entitlement security.insecure'


- name: Login to Docker Hub
uses: docker/login-action@v3
Expand All @@ -28,16 +30,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Build and push Docker image
env:
DOCKER_BUILDKIT: 1
run: |
docker buildx create --driver-opt image=moby/buildkit:master --use --name insecure-builder --buildkitd-flags '--allow-insecure-entitlement security.insecure'
docker buildx use insecure-builder
docker buildx build \
--progress=plain \
--allow security.insecure \
--platform linux/amd64,linux/arm64,linux/arm/v7 \
--tag bredos/bredos:latest \
--file Dockerfile \
--push .
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64v8,linux/arm32v7
push: true
tags: bredos/bredos:latest
file: Dockerfile
allow: security.insecure

0 comments on commit 4dfe01e

Please sign in to comment.