-
Notifications
You must be signed in to change notification settings - Fork 109
36 lines (31 loc) · 1.15 KB
/
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
name: docker
on:
push:
branches:
- 'main'
jobs:
build-and-publish:
name: Build & Publish
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@main
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build and push Docker image to ghcr.io
uses: docker/build-push-action@v2
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/marconlp/snapify:latest
labels: |
org.opencontainers.image.url=https://github.com/marconlp/snapify
org.opencontainers.image.source=https://github.com/marconlp/snapify
org.opencontainers.image.title=snapify
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ github.event.repository.updated_at }}
org.opencontainers.image.description=Screen recording sharing for absolutely everyone.