|
@@ -1,9 +1,9 @@
|
|
|
on:
|
|
on:
|
|
|
|
|
+ workflow_dispatch:
|
|
|
push:
|
|
push:
|
|
|
branches: [ main ]
|
|
branches: [ main ]
|
|
|
pull_request:
|
|
pull_request:
|
|
|
branches: [ main ]
|
|
branches: [ main ]
|
|
|
- workflow_dispatch:
|
|
|
|
|
env:
|
|
env:
|
|
|
REGISTRY: ghcr.io
|
|
REGISTRY: ghcr.io
|
|
|
IMAGE_NAME: ehfd/nvidia-glx-desktop
|
|
IMAGE_NAME: ehfd/nvidia-glx-desktop
|
|
@@ -23,28 +23,28 @@ jobs:
|
|
|
registry: ${{ env.REGISTRY }}
|
|
registry: ${{ env.REGISTRY }}
|
|
|
username: ${{ github.actor }}
|
|
username: ${{ github.actor }}
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
- - name: Extract Docker metadata
|
|
|
|
|
|
|
+ - name: Extract Container metadata
|
|
|
id: meta
|
|
id: meta
|
|
|
uses: docker/metadata-action@v3
|
|
uses: docker/metadata-action@v3
|
|
|
with:
|
|
with:
|
|
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
|
|
- - name: Build and push Ubuntu 20.04 Docker image
|
|
|
|
|
|
|
+ - name: Build and push Ubuntu 18.04 Container image
|
|
|
uses: docker/build-push-action@v2
|
|
uses: docker/build-push-action@v2
|
|
|
with:
|
|
with:
|
|
|
build-args: |
|
|
build-args: |
|
|
|
- UBUNTU_RELEASE=20.04
|
|
|
|
|
|
|
+ UBUNTU_RELEASE=18.04
|
|
|
context: .
|
|
context: .
|
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
|
- tags: |
|
|
|
|
|
- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
|
|
|
|
- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:20.04
|
|
|
|
|
|
|
+ tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:18.04
|
|
|
labels: ${{ steps.meta.outputs.labels }}
|
|
labels: ${{ steps.meta.outputs.labels }}
|
|
|
- - name: Build and push Ubuntu 18.04 Docker image
|
|
|
|
|
|
|
+ - name: Build and push Ubuntu 20.04 Container image
|
|
|
uses: docker/build-push-action@v2
|
|
uses: docker/build-push-action@v2
|
|
|
with:
|
|
with:
|
|
|
build-args: |
|
|
build-args: |
|
|
|
- UBUNTU_RELEASE=18.04
|
|
|
|
|
|
|
+ UBUNTU_RELEASE=20.04
|
|
|
context: .
|
|
context: .
|
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
|
- tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:18.04
|
|
|
|
|
|
|
+ tags: |
|
|
|
|
|
+ ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
|
|
|
|
+ ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:20.04
|
|
|
labels: ${{ steps.meta.outputs.labels }}
|
|
labels: ${{ steps.meta.outputs.labels }}
|