forked from lucyparsons/OpenOversight
-
Notifications
You must be signed in to change notification settings - Fork 11
37 lines (34 loc) · 950 Bytes
/
publish.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
name: Publish Docker image
on:
release:
types: [published]
push:
branches:
- ci-*
env:
image_name: orcacollective/openoversight
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v3
with:
registry: https://ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@v5
with:
push: true
build-args: IS_PROD=true
tags: |
ghcr.io/${{ env.image_name }}:${{ github.sha }}
ghcr.io/${{ env.image_name }}:${{ github.ref_name }}
ghcr.io/${{ env.image_name }}:latest