add custom docker builder, part of #81
This commit is contained in:
parent
ad1c4ecbc9
commit
a986864f77
|
@ -36,8 +36,10 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Create a new container builder
|
||||
run: docker buildx create --name builder && docker buildx use builder
|
||||
- name: Build the container image
|
||||
run: docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag $IMAGE_NAME .
|
||||
run: docker buildx build --platform linux/arm/v7,linux/arm64,linux/amd64 --tag $IMAGE_NAME .
|
||||
- name: Log into GitHub Container Registry
|
||||
run: echo "${{ secrets.REGISTRY_ACCESS_TOKEN }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
|
||||
- name: Push image to GitHub Container Registry
|
||||
|
|
|
@ -15,6 +15,8 @@ jobs:
|
|||
- name: Get tag
|
||||
id: vars
|
||||
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
|
||||
- name: Create a new container builder
|
||||
run: docker buildx create --name builder && docker buildx use builder
|
||||
- name: Build the container image
|
||||
run: docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag $IMAGE_NAME .
|
||||
- name: Log into GitHub Container Registry
|
||||
|
|
Loading…
Reference in New Issue