Skip to content

optimize Dockerfile #124

optimize Dockerfile

optimize Dockerfile #124

Workflow file for this run

name: Create and publish a Docker image
on:
push:
env:
REGISTRY: ghcr.io
IMAGE_NAME: wemeet # ${{ github.repository }}
APP_URL: https://updatecdn.meeting.qq.com/cos/da1c30b1a927cd691e4ee60aba829c88/TencentMeeting_0300000000_3.15.1.403_x86_64_default.publish.deb
APP_VERSION: 3.15.1.403
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- id: buildx
uses: docker/setup-buildx-action@v2
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: |
${{ env.REGISTRY }}/${{ github.actor }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ github.actor }}/${{ env.IMAGE_NAME }}:${{ env.APP_VERSION }}
build-args: |
WEMEET_URL=${{ env.APP_URL }}