Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GH action publishing the wrong base image #17

Merged
merged 1 commit into from
Dec 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 30 additions & 3 deletions .github/workflows/ubi8-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:

jobs:

build_ubi8_images:
name: Build and publish ubi8 images to Quay.io
build_base_ubi8_image:
name: Build and publish base ubi8 image to Quay.io
runs-on: ubuntu-20.04
steps:
- name: Checkout
Expand All @@ -19,7 +19,6 @@ jobs:
with:
images: |
quay.io/devfile/base-developer-image
quay.io/devfile/universal-developer-image
flavor: |
latest=true
prefix=ubi8-,onlatest=true
Expand All @@ -42,6 +41,34 @@ jobs:
context: base/ubi8
tags: |
${{ steps.meta.outputs.tags }}

build_universal_ubi8_image:
name: Build and publish universal ubi8 image to Quay.io
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: |
quay.io/devfile/universal-developer-image
flavor: |
latest=true
prefix=ubi8-,onlatest=true
tags: |
type=sha,prefix=ubi8-,format=short
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Quay.io
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Docker Build & Push Universal
uses: docker/build-push-action@v2
with:
Expand Down