50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
name: "Release"
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on: [pull_request]
|
|
jobs:
|
|
tests:
|
|
name: Unit & E2E
|
|
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
|
|
|
|
# If this run was triggered by a pull request event, then checkout
|
|
# the head of the pull request instead of the merge commit.
|
|
- run: git checkout HEAD^2
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
|
|
# This is a separate action that sets up buildx runner
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v4
|
|
with:
|
|
context: .
|
|
platforms: linux/amd64,linux/arm64
|
|
build-args: |
|
|
VERSION=1.XX.X
|
|
push: false
|
|
tags: |
|
|
appwrite/appwrite:latest
|
|
appwrite/appwrite:1.XX.X
|
|
appwrite/appwrite:1.XX
|
|
appwrite/appwrite:1
|