2021-06-03 20:29:57 +00:00
|
|
|
---
|
|
|
|
name: "pre-release"
|
|
|
|
|
2023-07-28 15:33:53 +00:00
|
|
|
on: [push]
|
|
|
|
|
|
|
|
env:
|
|
|
|
IMAGE_NAME: ${{ github.repository }}
|
2021-06-03 20:29:57 +00:00
|
|
|
|
|
|
|
jobs:
|
2022-11-11 22:39:48 +00:00
|
|
|
pre-release-docker:
|
|
|
|
name: "Pre Release Docker"
|
2021-06-03 20:29:57 +00:00
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
steps:
|
2023-07-28 15:33:53 +00:00
|
|
|
-
|
|
|
|
name: Docker meta
|
|
|
|
id: meta
|
|
|
|
uses: docker/metadata-action@v4
|
|
|
|
with:
|
|
|
|
images: ${{ env.IMAGE_NAME }}
|
|
|
|
tags: |
|
|
|
|
type=raw,value=latest,enable={{is_default_branch}}
|
|
|
|
type=sha,format=long
|
|
|
|
type=sha
|
|
|
|
type=semver,pattern=v{{major}}.{{minor}}.{{patch}}
|
|
|
|
type=semver,pattern=v{{major}}.{{minor}}
|
|
|
|
type=semver,pattern=v{{major}}
|
|
|
|
type=ref,event=tag
|
|
|
|
type=ref,event=branch
|
|
|
|
|
2023-07-28 23:50:02 +00:00
|
|
|
- uses: docker/setup-qemu-action@v2
|
|
|
|
- uses: docker/setup-buildx-action@v2
|
2023-07-28 15:33:53 +00:00
|
|
|
- uses: docker/login-action@v2
|
2022-05-18 12:35:51 +00:00
|
|
|
with:
|
|
|
|
username: "${{ secrets.DOCKER_HUB_USER }}"
|
|
|
|
password: "${{ secrets.DOCKER_HUB_TOKEN }}"
|
|
|
|
- name: "Build and push docker image"
|
2023-07-28 23:50:02 +00:00
|
|
|
uses: docker/build-push-action@v4
|
2022-05-18 12:35:51 +00:00
|
|
|
with:
|
|
|
|
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
|
|
|
push: true
|
2023-07-28 15:33:53 +00:00
|
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
|
|
labels: ${{ steps.meta.outputs.labels }}
|