-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 936 Bytes
/
docker.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
33
34
35
36
37
38
name: docker
on:
push:
branches: [ main ]
paths:
- 'Dockerfile'
- 'entrypoint.sh'
- '.github/workflows/docker.yml'
env:
VERSION_SLMIX: v0.6.0-dev
jobs:
docker:
env:
IMAGE_NAME: studio-link/mix/slmix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log into registry
uses: docker/login-action@v3
with:
registry: "ghcr.io"
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: |
docker build -t slmix .
- name: Tag and Push image
if: github.event_name != 'pull_request'
run: |
docker tag slmix ghcr.io/${{ env.IMAGE_NAME }}:${{ env.VERSION_SLMIX }}
docker tag slmix ghcr.io/${{ env.IMAGE_NAME }}:latest
docker push ghcr.io/${{ env.IMAGE_NAME }}:${{ env.VERSION_SLMIX }}
docker push ghcr.io/${{ env.IMAGE_NAME }}:latest