mirror of
https://git.verdigado.com/NB-Public/simple-wkd.git
synced 2024-10-30 03:05:51 +01:00
Remove matrix in gtihub ci
This commit is contained in:
parent
692b5e6cd1
commit
cf2515b116
1 changed files with 10 additions and 49 deletions
57
.github/workflows/docker.yml
vendored
57
.github/workflows/docker.yml
vendored
|
@ -5,62 +5,23 @@ on:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- platform: linux/amd64
|
|
||||||
arch: x86_64
|
|
||||||
- platform: linux/arm64
|
|
||||||
arch: aarch64
|
|
||||||
- platform: linux/arm/v7
|
|
||||||
arch: armv7
|
|
||||||
- platform: linux/arm/v6
|
|
||||||
arch: arm
|
|
||||||
- platform: linux/386
|
|
||||||
arch: i686
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v2
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- name: Build images
|
- name: Build images
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
platforms: ${{ matrix.platform }}
|
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/386
|
||||||
tags: delta1925/simple-wkd:${{ matrix.arch }}
|
tags: simple-wkd:latest,simple-wkd:${{ github.ref_name }}
|
||||||
outputs: type=docker,dest=/tmp/simple-wkd-${{ matrix.arch }}.tar
|
push: true
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
- name: Upload artifact
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: simple-wkd-${{ matrix.arch }}
|
|
||||||
path: /tmp/simple-wkd-${{ matrix.arch }}.tar
|
|
||||||
|
|
||||||
push:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: build
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- tag: latest
|
|
||||||
- tag: ${{ github.ref_name }}
|
|
||||||
steps:
|
|
||||||
- name: Download artifacts
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
path: /tmp/simple-wkd
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v2
|
|
||||||
- name: Login to Docker Hub
|
|
||||||
run: docker login -p ${{ secrets.DOCKERHUB_TOKEN }} -u ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
- name: Load images
|
|
||||||
run: find /tmp/simple-wkd -iname "simple-wkd-*.tar" -exec docker load --input {} \
|
|
||||||
- name: Create manifest
|
|
||||||
run: docker manifest create delta1925/simple-wkd:${{ matrix.tag }} simple-wkd:x86_64 simple-wkd:aarch64 simple-wkd:armv7 simple-wkd:arm simple-wkd:i686
|
|
||||||
- name: Push images
|
|
||||||
run: docker matifest push delta1925/simple-wkd:${{ matrix.tag }}
|
|
||||||
- name: Logout from Docker hub
|
|
||||||
run: docker logout
|
|
Loading…
Reference in a new issue