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
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
- name: Build Docker image
|
||||
run: |
|
||||
docker build . --file Dockerfile --tag ghcr.io/nicolaschan/minecraft-backup:${GITHUB_REF#refs/*/} --tag ghcr.io/nicolaschan/minecraft-backup:latest
|
||||
- name: Publish Docker image
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
with:
|
||||
platforms: all
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
with:
|
||||
version: latest
|
||||
- name: ghcr.io login
|
||||
run: |
|
||||
echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
|
||||
docker push ghcr.io/nicolaschan/minecraft-backup:${GITHUB_REF#refs/*/}
|
||||
docker push ghcr.io/nicolaschan/minecraft-backup:latest
|
||||
|
||||
- name: Run Buildx
|
||||
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