mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 04:09:12 +00:00
chore: remove cross-compilation, very not necessary.
This commit is contained in:
parent
ab3203d55b
commit
4f0d1ee316
1 changed files with 8 additions and 16 deletions
24
.github/workflows/docker.yml
vendored
24
.github/workflows/docker.yml
vendored
|
@ -8,28 +8,20 @@ name: Docker Workflow
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_publish:
|
build_publish:
|
||||||
name: Build and Publish
|
name: Build and Push
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
- name: Docker Login
|
- name: Docker Login
|
||||||
run: |
|
run: |
|
||||||
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
||||||
- name: Buildx Setup
|
|
||||||
|
- name: Docker Build
|
||||||
run: |
|
run: |
|
||||||
update-binfmts --enable
|
docker build . -t katie/roleypoly:${{ github.sha }}
|
||||||
$BUILDX create --name build --use
|
|
||||||
$BUILDX inspect --bootstrap
|
- name: Docker Push
|
||||||
- name: Buildx Build
|
run: |
|
||||||
run: |
|
docker push katie/roleypoly:${{ github.sha }}
|
||||||
$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