This repository has been archived by the owner on Jan 17, 2022. It is now read-only.
generated from Quantumlyy/template-typescript-discord-sapphire
-
-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (53 loc) · 1.54 KB
/
contain.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Make Docker Container for Development
on:
workflow_dispatch:
workflow_run:
workflows: ["Build"]
branches:
- main
types:
- completed
push:
branches:
- build
jobs:
Contain:
name: 'Create Docker Container for Development'
runs-on: ubuntu-latest
if: "!(contains(github.event.head_commit.message, '[skip ci]') || contains(github.event.head_commit.message, '[skip contain]'))"
steps:
- name: Checkout Project
uses: actions/checkout@v1
with:
ref: build
- name: Use Node.js 14
uses: actions/setup-node@v1
with:
node-version: 14
- name: Restore CI Cache
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-14-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
run: yarn --ignore-scripts --frozen-lockfile
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: Devnol
password: ${{ secrets.DEVNOL_CR_PAT }}
- name: Build and push to GHCR
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/cytrus-re/debia:dev-latest
ghcr.io/cytrus-re/debia:${{ github.sha }}