-
Notifications
You must be signed in to change notification settings - Fork 17
35 lines (35 loc) · 1.07 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@v4
- name: Unshallow
run: git fetch --prune --unshallow
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
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: crazy-max/ghaction-docker-buildx@v1
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 }}