-
Notifications
You must be signed in to change notification settings - Fork 19
35 lines (35 loc) · 1.05 KB
/
merge.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: merge
on:
push:
branches:
- 'master'
- 'release-*'
jobs:
merge_master:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Unshallow
run: git fetch --prune --unshallow
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Enable experimental on dockerd
run: |
echo $'{\n "experimental": true\n}' | sudo tee /etc/docker/daemon.json
sudo service docker restart
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
with:
version: latest
- name: Docker login
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USER }} --password-stdin
- name: Make release
run: make release
env:
DOCKER_CLI_EXPERIMENTAL: enabled
TAG: ${{ env.GITHUB_SHA }}
IMAGE_TAG: ${{ steps.extract_branch.outputs.branch }}