1
0
Fork 0
mirror of synced 2024-07-06 15:11:21 +12:00
appwrite/.github/workflows/release.yml

54 lines
1.4 KiB
YAML
Raw Normal View History

2023-04-19 23:23:14 +12:00
name: "Release"
2023-04-19 23:22:13 +12:00
2023-04-21 07:46:29 +12:00
on:
release:
types: [published]
2023-04-19 23:22:13 +12:00
jobs:
tests:
2023-04-29 07:47:51 +12:00
name: Release
2023-04-19 23:22:13 +12:00
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
# Fetch submodules
submodules: recursive
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
2023-04-21 08:15:29 +12:00
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
2023-04-21 07:46:29 +12:00
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: appwrite/appwrite
tags: |
2023-04-21 21:58:59 +12:00
type=semver,pattern={{major}}.{{minor}}.{{patch}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
2023-04-21 07:46:29 +12:00
2023-04-19 23:22:13 +12:00
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
2023-04-19 23:25:12 +12:00
build-args: |
2023-04-21 07:46:29 +12:00
VERSION=${{ steps.meta.outputs.version }}
2023-04-21 08:15:29 +12:00
push: true
2023-04-21 07:46:29 +12:00
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}