Compare commits
1 Commits
master
...
dependabot
Author | SHA1 | Date | |
---|---|---|---|
|
f1de898b61 |
15
.drone.yml
15
.drone.yml
@ -1,15 +0,0 @@
|
|||||||
kind: pipeline
|
|
||||||
name: default
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: docker
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
registry: git.ericxliu.me
|
|
||||||
username: master
|
|
||||||
password: 1f8af4f82c0bd4dc24c1a03eaea6da13f54fed1c
|
|
||||||
repo: git.ericxliu.me/master/getting-started
|
|
||||||
tags: latest
|
|
||||||
platform: linux/amd64
|
|
||||||
custom_dns: [ 8.8.8.8 ]
|
|
||||||
mtu: 1450
|
|
34
.github/workflows/build.yml
vendored
34
.github/workflows/build.yml
vendored
@ -1,30 +1,14 @@
|
|||||||
name: Build and Push Docker Image
|
name: Build
|
||||||
|
on: [push, pull_request]
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
env:
|
|
||||||
IMAGE_NAME: ${{ github.repository_owner }}/${{ github.event.repository.name }}
|
|
||||||
DOCKER_HOST: tcp://docker.local:2375
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- uses: actions/checkout@v2
|
||||||
uses: actions/checkout@v4
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
- name: Build
|
||||||
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
repository: ${{ github.repository }}
|
push: false
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Log in to the Docker registry
|
|
||||||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login ${{ secrets.DOCKER_REGISTRY }} -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
|
||||||
|
|
||||||
- name: Build the Docker image
|
|
||||||
run: docker build -t ${{ secrets.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}:latest .
|
|
||||||
|
|
||||||
- name: Push the Docker image
|
|
||||||
run: docker push ${{ secrets.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
|
||||||
|
24
Dockerfile
24
Dockerfile
@ -1,31 +1,9 @@
|
|||||||
# Install the base requirements for the app.
|
# Install the base requirements for the app.
|
||||||
# This stage is to support development.
|
# This stage is to support development.
|
||||||
ARG BUILDPLATFORM="linux/amd64"
|
|
||||||
ARG TARGETPLATFORM="linux/amd64"
|
|
||||||
|
|
||||||
FROM --platform=$BUILDPLATFORM python:alpine AS base
|
FROM --platform=$BUILDPLATFORM python:alpine AS base
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
RUN ping -c5 8.8.8.8
|
|
||||||
RUN ping -c5 208.67.222.222
|
|
||||||
RUN ifconfig
|
|
||||||
RUN uname -a
|
|
||||||
RUN cat /etc/resolv.conf
|
|
||||||
RUN route
|
|
||||||
RUN ip address
|
|
||||||
RUN ip route
|
|
||||||
RUN nslookup google.com
|
|
||||||
# RUN apk update
|
|
||||||
# RUN apk add --no-cache curl dig
|
|
||||||
# RUN dig https://google.com
|
|
||||||
# RUN curl -IL google.com
|
|
||||||
# RUN curl ifconfig.me
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
RUN pip3 install --default-timeout=100 -r requirements.txt
|
|
||||||
|
|
||||||
FROM --platform=$BUILDPLATFORM node:18-alpine AS app-base
|
FROM --platform=$BUILDPLATFORM node:18-alpine AS app-base
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
@ -1560,9 +1560,9 @@ html-escaper@^2.0.0:
|
|||||||
integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==
|
integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==
|
||||||
|
|
||||||
http-cache-semantics@^4.1.0:
|
http-cache-semantics@^4.1.0:
|
||||||
version "4.1.0"
|
version "4.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz#49e91c5cbf36c9b94bcfcd71c23d5249ec74e390"
|
resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz#abe02fcb2985460bf0323be664436ec3476a6d5a"
|
||||||
integrity sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==
|
integrity sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==
|
||||||
|
|
||||||
http-errors@2.0.0:
|
http-errors@2.0.0:
|
||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user