Update ci.yml
This commit is contained in:
parent
8350b3bf70
commit
13dc39729f
1 changed files with 17 additions and 7 deletions
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
|
@ -81,12 +81,22 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
- name: Build Docker image
|
- name: Set up QEMU
|
||||||
run: |
|
uses: docker/setup-qemu-action@v1
|
||||||
docker build . --file Dockerfile --tag ghcr.io/nicolaschan/minecraft-backup:${GITHUB_REF#refs/*/} --tag ghcr.io/nicolaschan/minecraft-backup:latest
|
with:
|
||||||
- name: Publish Docker image
|
platforms: all
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
with:
|
||||||
|
version: latest
|
||||||
|
- name: ghcr.io login
|
||||||
run: |
|
run: |
|
||||||
echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
|
echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
|
||||||
docker push ghcr.io/nicolaschan/minecraft-backup:${GITHUB_REF#refs/*/}
|
- name: Run Buildx
|
||||||
docker push ghcr.io/nicolaschan/minecraft-backup:latest
|
run: |
|
||||||
|
docker buildx build \
|
||||||
|
--pull \
|
||||||
|
--push \
|
||||||
|
--platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 \
|
||||||
|
--tag ghcr.io/nicolaschan/mumble:${GITHUB_REF#refs/*/}
|
||||||
|
--tag ghcr.io/nicolaschan/mumble:latest .
|
||||||
|
|
Loading…
Add table
Reference in a new issue