blob: 0c8338c4df0396a78d156da4cc7917e04eba10ee (
plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
name: Publish Docker image (develop)
on:
push:
branches:
- develop
paths:
- packages/**
- locales/**
workflow_dispatch:
env:
REGISTRY: git.joinsharkey.org
jobs:
push_to_registry:
name: Push Docker image to GHCR
runs-on: docker
steps:
- name: install packages
run: apt-get update && apt-get install -y wget git curl
- uses: https://code.forgejo.org/actions/setup-node@v3
with:
node-version: 20
- name: Install docker
run: |
echo deb http://deb.debian.org/debian bullseye-backports main | tee /etc/apt/sources.list.d/backports.list && apt-get -qq update
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -qq -y -t bullseye-backports docker.io
- name: Check out the repo
uses: actions/checkout@v4.1.1
- name: Set up Docker Buildx
id: buildx
uses: https://github.com/docker/setup-buildx-action@v3.0.0
with:
platforms: linux/amd64,linux/arm64
- name: Docker meta
id: meta
uses: https://github.com/docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/sharkey/sharkey
- name: Log in to GHCR
uses: https://github.com/docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: Marie
password: ${{ secrets.TOKEN }}
- name: Build and Push to GHCR
id: build
uses: https://github.com/docker/build-push-action@v5
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
push: true
platforms: ${{ steps.buildx.outputs.platforms }}
provenance: false
tags: ${{ env.REGISTRY }}/sharkey/sharkey:develop
labels: develop
build-args: NODE_ENV=development
|