-
-
Notifications
You must be signed in to change notification settings - Fork 56
32 lines (30 loc) · 1.15 KB
/
release-tag.yml
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
name: Release Tag
on:
push:
tags:
- 'v*' # Run workflow on version tags, e.g. v1.0.0.
jobs:
release-ott-dockerhub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log in to Dockerhub
run: |
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "dyc3" --password-stdin
- name: Build image for ${{ github.ref_name }}
run: |
docker compose -f docker/docker-compose.yml up -d --build
docker commit opentogethertube opentogethertube
docker compose -f docker/docker-compose.yml down
docker tag opentogethertube dyc3/opentogethertube:${{ github.ref_name }}
- name: Push to Dockerhub
run: docker push dyc3/opentogethertube:${{ github.ref_name }}
# this job doesn't work because we have multiple plugins, and the release
# action only supports one plugin that in the root of the repo (not in a workspace)
# release-grafana:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: grafana/plugin-actions/build-plugin@release
# with:
# policy_token: ${{ secrets.GRAFANA_API_KEY }}