name: Push apisix to Docker image | |
on: | |
push: | |
branches: ['release/apisix-**'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
platform: | |
- alpine | |
- centos | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Login | |
run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login --username=${{ secrets.DOCKERHUB_USER }} --password-stdin | |
- name: Push apisix image to Docker Hub | |
run: | | |
make build-on-${{ matrix.platform }} | |
make push-on-${{ matrix.platform }} |