Skip to content

Phase out Ubuntu 18.04 (Bionic) #70

Phase out Ubuntu 18.04 (Bionic)

Phase out Ubuntu 18.04 (Bionic) #70

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
REGISTRY: ghcr.io
IMAGE_NAME: selkies-project/nvidia-glx-desktop
jobs:
build-20.04:

Check failure on line 15 in .github/workflows/container-publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/container-publish.yml

Invalid workflow file

The workflow is not valid. .github/workflows/container-publish.yml (Line: 15, Col: 3): The identifier 'build-20.04' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters. .github/workflows/container-publish.yml (Line: 45, Col: 3): The identifier 'build-22.04' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
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 20.04 Container image
uses: docker/build-push-action@v3
with:
build-args: |
UBUNTU_RELEASE=20.04
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:20.04
labels: ${{ steps.meta.outputs.labels }}
build-22.04:
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 }}