Add support for database implement (#623) #521
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: image-develop | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
image: | |
name: docker build images of function | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install deps | |
run: sudo apt update -y && sudo apt install -y qemu qemu-user-static | |
- name: Install Docker CE for buildx | |
run: | | |
sudo apt update | |
sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt update | |
sudo apt install docker-ce | |
docker -v | |
- name: Checkout code | |
uses: actions/checkout@v1 | |
- name: docker login | |
run: | | |
docker login -u ${{ secrets.DOCKER_REGISTRY_ID }} -p ${{ secrets.DOCKER_REGISTRY_PASS }} | |
- name: build and publish image | |
run: | | |
make image PLATFORMS=all XFLAGS='--push --cache-to=type=local,dest=/tmp/main' REGISTRY=baetyltechtest/ | |