1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 05:54:42 -05:00

Merge pull request 'Add: Automation in Drone' (#63) from drone-test into main

Reviewed-on: https://codeberg.org/ashley/poke/pulls/63
This commit is contained in:
Korbs 2024-01-27 01:21:06 +00:00
commit 3704363f74
2 changed files with 20 additions and 1 deletions

19
.drone.yml Normal file
View file

@ -0,0 +1,19 @@
kind: pipeline
type: exec
name: Build and Push Docker Image (Quay)
platform:
os: linux
arch: amd64
steps:
- name: Build
environment:
QUAY_USERNAME:
from_secret: QUAY_USERNAME
QUAY_PASSWORD:
from_secret: QUAY_PASSWORD
commands:
- echo $QUAY_PASSWORD | docker login quay.io --username $QUAY_USERNAME --password-stdin
- docker build -t quay.io/sudovanilla/poketube .
- docker push quay.io/sudovanilla/poketube

View file

@ -25,7 +25,7 @@ RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg -
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update
RUN apt-get -y install nodejs
RUN apt-get -y install nodejs npm
# Install Packages
RUN npm install