mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 08:18:29 +01: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:
commit
3704363f74
2 changed files with 20 additions and 1 deletions
19
.drone.yml
Normal file
19
.drone.yml
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue