Browse Source

Ubuntu 22.04 CI

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

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

@@ -65,6 +65,36 @@ jobs:
         context: .
         push: ${{ github.event_name != 'pull_request' }}
         tags: |
-          ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
           ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:20.04
         labels: ${{ steps.meta.outputs.labels }}
+  build-jammy:
+    runs-on: ubuntu-latest
+    permissions:
+      contents: read
+      packages: write
+    steps:
+    - name: Checkout repository
+      uses: actions/checkout@v3
+    - name: Log into registry ${{ env.REGISTRY }}
+      if: github.event_name != 'pull_request'
+      uses: docker/login-action@v2
+      with:
+        registry: ${{ env.REGISTRY }}
+        username: ${{ github.actor }}
+        password: ${{ secrets.GITHUB_TOKEN }}
+    - name: Extract Container metadata
+      id: meta
+      uses: docker/metadata-action@v4
+      with:
+        images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
+    - name: Build and push Ubuntu 22.04 Container image
+      uses: docker/build-push-action@v3
+      with:
+        build-args: |
+          UBUNTU_RELEASE=22.04
+        context: .
+        push: ${{ github.event_name != 'pull_request' }}
+        tags: |
+          ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
+          ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:22.04
+        labels: ${{ steps.meta.outputs.labels }}