forked from supakeen/pinnwand
-
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.11 KB
/
pydis_build.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
36
37
38
39
40
41
42
name: PyDis build & deploy
on:
push:
branches: ["deployment"]
jobs:
build-image:
name: Build & push additional images
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Github Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Generate docker image metadata
uses: docker/metadata-action@v5
id: meta
with:
images: ghcr.io/python-discord/pinnwand
tags: |
type=ref,event=tag,suffix=psql
type=raw,value=latest-psql
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Containerfile
target: psql
cache-from: type=registry,ref=ghcr.io/python-discord/pinnwand:latest-psql
cache-to: type=inline
tags: ${{ steps.meta.outputs.tags }}