Handle non existing redis keys (#63) #2
Workflow file for this run
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 Build and Push | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
jobs: | |
build_and_push: | |
name: π Build and push | |
runs-on: ubuntu-latest | |
steps: | |
- name: π« Checkout | |
uses: actions/[email protected] | |
- name: π Inject slug/short variables | |
uses: rlespinasse/[email protected] | |
with: | |
short-length: 8 | |
- name: π·οΈ Set up tags | |
id: meta | |
uses: docker/[email protected] | |
with: | |
# list of Docker images to use as base name for tags | |
images: | | |
ghcr.io/younited/pyredis-dump | |
# generate Docker tags based on the following events/attributes | |
tags: | | |
type=ref,event=branch | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
type=semver,pattern={{major}} | |
- name: βοΈ Set up QEMU | |
uses: docker/[email protected] | |
- name: βοΈ Set up Docker Buildx | |
uses: docker/[email protected] | |
- name: π Login to GitHub Container Registry | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ github.token }} | |
- name: π Build and push | |
uses: docker/[email protected] | |
with: | |
file: ./Dockerfile | |
push: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |