Skip to content

Testing

Testing #45

Workflow file for this run

name: Build docker image
on:
push:
branches:
- main
tags:
- '*'
env:
VALKEY80: '8.0.2'
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
jobs:
valkey80-build:
strategy:
matrix:
platform:
- linux/amd64
- linux/arm64
include:
- platform: linux/amd64
runner: ubuntu-24.04
arch: amd64
- platform: linux/arm64
runner: ubuntu-24.04-arm
arch: arm64
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/setup-buildx-action@v3
- name: build and push
env:
VALKEY_VER: ${{ env.VALKEY80 }}
TAG: 8.0-${{ matrix.arch }}
PLATFORM: ${{ matrix.platform }}
run: |
make buildx-build
make buildx-push
valkey80:
runs-on: ubuntu-latest
needs:
- valkey80-build
steps:
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: create multi-arch image
run: |
if [[ "${GITHUB_REF}" == refs/heads/main || "${GITHUB_REF}" == refs/tags/* ]]; then
TAGS=("8.0" "8" "latest")
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
STABILITY_TAG=("${GITHUB_REF##*/}")
TAGS=("8.0-${STABILITY_TAG}" "8-${STABILITY_TAG}")
fi
for TAG in "${TAGS[@]}"; do
docker buildx imagetools create -t wodby/valkey:$TAG \
wodby/valkey:8.0-amd64 \
wodby/valkey:8.0-arm64
done
fi
# valkey72:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: docker/setup-qemu-action@v3
# with:
# platforms: amd64,arm64
# - uses: docker/setup-buildx-action@v3
# - uses: ./.github/actions
# with:
# version: '7.2.8'
# tags: 7.2,7
# platform: linux/amd64,linux/arm64