mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-24 19:59:12 +00:00
chore: add cicd
This commit is contained in:
parent
3ee2e01d0d
commit
55f0bf8307
1 changed files with 35 additions and 0 deletions
35
.github/workflows/docker.yml
vendored
Normal file
35
.github/workflows/docker.yml
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
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 .
|
||||
|
Loading…
Add table
Reference in a new issue