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

GitHub action container #7571

Closed
wants to merge 52 commits into from
Closed
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
a9026d9
Build Container Image via github action
OdedViner May 1, 2023
dbd99b2
fix code
OdedViner May 1, 2023
fc93dd5
fix code
OdedViner May 1, 2023
380d7d2
fix code
OdedViner May 1, 2023
070ed38
fix
OdedViner May 1, 2023
0deebc4
fix code
OdedViner May 1, 2023
256ca94
fix code
OdedViner May 1, 2023
523d8e0
fix code1
OdedViner May 1, 2023
b9b0eb6
fix2
OdedViner May 1, 2023
e059c07
fix2
OdedViner May 1, 2023
6472b26
fix 3
OdedViner May 1, 2023
819f2e5
fix 4
OdedViner May 1, 2023
574d8cd
fix 5
OdedViner May 1, 2023
2bbb1dd
fix 7
OdedViner May 1, 2023
39c1128
fix 8
OdedViner May 1, 2023
821a5c7
petr check
OdedViner May 3, 2023
4082582
petr2
OdedViner May 3, 2023
ae43f20
petr3
OdedViner May 3, 2023
1aade2b
petr4
OdedViner May 3, 2023
67948b3
petr5
OdedViner May 3, 2023
de50d16
petr 6
OdedViner May 3, 2023
54c92bb
petr 7
OdedViner May 3, 2023
210c49f
oded8
OdedViner May 3, 2023
e3a1628
test oded
OdedViner May 7, 2023
39c25da
oded55
OdedViner May 7, 2023
a28dd52
123 test
OdedViner May 7, 2023
f6892f9
1234 test
OdedViner May 7, 2023
ea5fd3a
1234 test
OdedViner May 7, 2023
aa675c5
1234 test
OdedViner May 7, 2023
0c21920
1234 test
OdedViner May 7, 2023
9f8b50d
1234 test
OdedViner May 7, 2023
bb3b8af
1234 test
OdedViner May 7, 2023
9b7b7d3
1234 test
OdedViner May 7, 2023
f16374f
1234 test
OdedViner May 7, 2023
4b61885
1234 test
OdedViner May 7, 2023
a47293c
1234 test
OdedViner May 8, 2023
06d1837
1234 test
OdedViner May 8, 2023
a700a6a
1111234 test
OdedViner May 8, 2023
9cfe477
1111234 test
OdedViner May 8, 2023
e3e72b2
1111234 test
OdedViner May 8, 2023
2152350
1111234 test
OdedViner May 8, 2023
e3b6ecb
1111234 test
OdedViner May 8, 2023
5582144
1111234 test
OdedViner May 8, 2023
9ee75b5
1111234 test
OdedViner May 8, 2023
74473fb
1111234 test
OdedViner May 8, 2023
a50456b
1111234 test
OdedViner May 8, 2023
f9d9e13
1111234 test
OdedViner May 8, 2023
66ce53c
1111234 test
OdedViner May 8, 2023
8c08cca
1111234 test
OdedViner May 8, 2023
06262e6
fix gitaction filename
OdedViner May 8, 2023
30ecfef
fix code
OdedViner May 8, 2023
827ea66
123
OdedViner May 8, 2023
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
52 changes: 52 additions & 0 deletions .github/workflows/build_push_ocsci_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Build Container Image

on: [pull_request]

# Environment Vars
env:
REGISTRY_USER: ${{ secrets.QUAY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
REGISTRY: quay.io
REGISTRY_NS: ocsci
REGISTRY_IMAGE: ocs-ci-container

jobs:
buildah:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set time env
run: echo "TIME=$(date --rfc-3339=date)" >> "$GITHUB_ENV"

- name: Log in to Quay.io
uses: redhat-actions/podman-login@v1
with:
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
registry: ${{ env.REGISTRY }}

- name: Buildah Action
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}
tags: test55 test55-${{ env.TIME }}
containerfiles: |
./Docker_files/ocsci_container/Containerfile.ci

- name: check image name
run: podman images

- name: Push To quay.io
id: push-to-quay
uses: redhat-actions/push-to-registry@v2
with:
registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}
image: ${{ env.REGISTRY_IMAGE }}
tags: ${{ steps.build-image.outputs.tags }}

- name: Print image url
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"
Loading