Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Draft: Fix building quay image #637

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
40 changes: 40 additions & 0 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,43 @@ jobs:
run: |
make test-docstrings
make docs

upgrade_container:
needs: codechecks
name: Update Upgrade Container image on Quay.
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Get image tag
id: image_tag
run: |
echo -n ::set-output name=IMAGE_TAG::
TAG="${GITHUB_REF##*/}"
if [ "${TAG}" == "master" ]; then
TAG="latest"
fi
echo "${TAG}"

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Quay Container Registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.QUAY_SERVER }}
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

- name: Build and push image to Quay
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.QUAY_SERVER }}/${{ secrets.QUAY_NAMESPACE }}/upgrade:${{ steps.image_tag.outputs.IMAGE_TAG }}
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
FROM fedora
FROM quay.io/fedora/python-311:latest
MAINTAINER https://github.com/SatelliteQE

RUN dnf install -y gcc git make cmake libffi-devel openssl-devel python3-devel \
python3-pip redhat-rpm-config which libcurl-devel libxml2-devel

COPY / /satellite6-upgrade/
COPY --chown=1001:0 / /satellite6-upgrade/
WORKDIR /satellite6-upgrade

ENV PYCURL_SSL_LIBRARY=openssl
Expand Down
Loading