mirror of
https://github.com/Tecnativa/docker-socket-proxy
synced 2025-01-03 04:10:55 +00:00
Try multi-platform builds and push to ghcr.io
This commit is contained in:
parent
38f530af89
commit
d2dad86abe
31
.github/workflows/test.yaml
vendored
31
.github/workflows/test.yaml
vendored
@ -51,3 +51,34 @@ jobs:
|
||||
- run: poetry install
|
||||
# Run tests
|
||||
- run: poetry run pytest
|
||||
build-push:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
env:
|
||||
DOCKER_REGISTRY_PASSWORD: ${{ secrets.BOT_TOKEN }}
|
||||
DOCKER_REGISTRY_USERNAME: ${{ secrets.BOT_LOGIN }}
|
||||
DOCKER_REGISTRY: ghcr.io
|
||||
DOCKER_REPO: tecnativa/docker-socket-proxy
|
||||
steps:
|
||||
# Prepare
|
||||
- uses: actions/checkout@v2
|
||||
- uses: docker/setup-qemu-action@v1
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
# Build and push
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ env.DOCKER_REGISTRY_USERNAME }}
|
||||
password: ${{ env.DOCKER_REGISTRY_PASSWORD }}
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm/v8,linux/arm64,linux/ppc64le,linux/s390x
|
||||
load: false
|
||||
push: true
|
||||
tags: |
|
||||
${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_REPO }}
|
||||
|
Loading…
Reference in New Issue
Block a user