blob: abf3b6c1d1bb7a0677371dea93f111dfec1f586e [file] [log] [blame]
name: Push apisix to Docker image
on:
release:
types: [ published ]
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.DOCKER_PASSWORD }} | docker login --username=${{ secrets.DOCKER_USERNAME }} --password-stdin
- name: Push apisix image to Docker Hub
run:
make build-on-${{ matrix.platform }}
make push-on-${{ matrix.platform }}