Skip to content

Commit

Permalink
ci: build-next
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy committed Dec 18, 2023
1 parent 38bf64b commit 9a4c8bf
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build-next.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#
# Copyright (C) 2023 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

name: CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

- name: Login to ghcr.io
run: podman login --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }} ghcr.io

- name: Publish Image
id: publish-image
run: |
IMAGE_NAME=ghcr.io/${{ github.repository_owner }}/podman-desktop-extension-image-checker
IMAGE_LATEST=${IMAGE_NAME}:latest
IMAGE_SHA=${IMAGE_NAME}:${GITHUB_SHA}
./scripts/build.sh ${IMAGE_NAME} ${GITHUB_SHA}
podman tag $IMAGE_SHA $IMAGE_LATEST
podman push $IMAGE_LATEST

0 comments on commit 9a4c8bf

Please sign in to comment.