Browse Source

Build each distro version separately

Seungmin Kim 3 năm trước cách đây
mục cha
commit
554cd436a6
1 tập tin đã thay đổi với 21 bổ sung1 xóa
  1. 21 1
      .github/workflows/container-publish.yml

+ 21 - 1
.github/workflows/container-publish.yml

@@ -8,7 +8,7 @@ env:
   REGISTRY: ghcr.io
   IMAGE_NAME: ehfd/nvidia-glx-desktop
 jobs:
-  build:
+  build-bionic:
     runs-on: ubuntu-latest
     permissions:
       contents: read
@@ -37,6 +37,26 @@ jobs:
         push: ${{ github.event_name != 'pull_request' }}
         tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:18.04
         labels: ${{ steps.meta.outputs.labels }}
+  build-focal:
+    runs-on: ubuntu-latest
+    permissions:
+      contents: read
+      packages: write
+    steps:
+    - name: Checkout repository
+      uses: actions/checkout@v2
+    - name: Log into registry ${{ env.REGISTRY }}
+      if: github.event_name != 'pull_request'
+      uses: docker/login-action@v1
+      with:
+        registry: ${{ env.REGISTRY }}
+        username: ${{ github.actor }}
+        password: ${{ secrets.GITHUB_TOKEN }}
+    - name: Extract Container metadata
+      id: meta
+      uses: docker/metadata-action@v3
+      with:
+        images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
     - name: Build and push Ubuntu 20.04 Container image
       uses: docker/build-push-action@v2
       with: