diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 00000000..4f0b5ae9 --- /dev/null +++ b/.drone.yml @@ -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 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index c934dca0..66f2062b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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