mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 04:09:12 +00:00
35 lines
No EOL
942 B
YAML
35 lines
No EOL
942 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- cicd
|
|
|
|
name: Docker Workflow
|
|
|
|
jobs:
|
|
build_publish:
|
|
name: Build and Publish
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: jonoh/docker-buildx-qemu
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
env:
|
|
DOCKER_CLI_EXPERIMENTAL: enabled
|
|
BUILDX: /root/.docker/cli-plugins/docker-buildx
|
|
options: --privileged
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Docker Login
|
|
run: |
|
|
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
|
- name: Buildx Setup
|
|
run: |
|
|
update-binfmts --enable
|
|
$BUILDX create --name build --use
|
|
$BUILDX inspect --bootstrap
|
|
- name: Buildx Build
|
|
run: |
|
|
$BUILDX build --platform linux/arm64,linux/arm/v7,linux/amd64 --pull -t katie/roleypoly:${{ github.sha }} --push .
|
|
|