include a gif demo in the readme and modify the release docker image … #4
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: Docker Release | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- v* | |
jobs: | |
docker_release: | |
name: Publish images | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and Push ceremony creator image to Docker Hub | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
# platforms: linux/amd64,linux/arm64 | |
push: true # true to upload image to registry | |
tags: vocdoni/zk-voceremony-create:latest | |
target: zk-voceremony-create | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
- name: Build and Push base image to Docker Hub | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
# platforms: linux/amd64,linux/arm64 | |
push: true # true to upload image to registry | |
tags: vocdoni/zk-voceremony:latest | |
target: zk-voceremony | |
cache-from: type=gha | |
cache-to: type=gha,mode=max |