feat: proxy container (#8000)

This commit is contained in:
DD
2022-06-18 00:29:50 +03:00
committed by GitHub
parent 0a138dab95
commit 2681929e42
25 changed files with 652 additions and 7 deletions

26
.github/workflows/publish-docker.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Publish Docker Images
on:
workflow_dispatch:
jobs:
docker:
name: Docker
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_TOKEN }}
- name: Build the image
run: docker build -t discordjs/proxy:latest -f packages/proxy-container/Dockerfile .
- name: Tag the image with major
run: docker tag discordjs/proxy discordjs/proxy:$(cut -d '.' -f1 <<< $(jq --raw-output '.version' packages/proxy-container/package.json))
- name: Push image to DockerHub
run: docker push --all-tags discordjs/proxy