File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 with :
2424 dockerfile : ${{ matrix.dockerfile }}
2525 failure-threshold : warning
26-
27- image-build :
28- name : Container Image Build
29- needs : hadolint
30- runs-on : ubuntu-latest
31- env :
32- IMAGE_NAME : resultsdb_frontend
33- REGISTRY : quay.io/factory2
34- GH_REGISTRY : ghcr.io/${{ github.actor }}
35-
36- steps :
37- - uses : actions/checkout@v4
38-
39- - name : Build Image
40- id : build-image
41- uses : redhat-actions/buildah-build@v2
42- with :
43- image : ${{ env.IMAGE_NAME }}
44- tags : >-
45- ${{ github.ref == 'refs/heads/develop' && 'latest' || '' }}
46- ${{ github.sha }}
47- containerfiles : Dockerfile
48- build-args : |
49- GITHUB_SHA=${{ github.sha }}
50-
51- - name : Log in to the image registry
52- if : github.event_name == 'push' && github.actor != 'dependabot[bot]'
53- uses : redhat-actions/podman-login@v1
54- with :
55- registry : ${{ secrets.REGISTRY_USER && env.REGISTRY || env.GH_REGISTRY }}
56- username : ${{ secrets.REGISTRY_USER || github.actor }}
57- password : ${{ secrets.REGISTRY_PASSWORD || secrets.GITHUB_TOKEN }}
58-
59- - name : Push Image
60- if : github.event_name == 'push' && github.actor != 'dependabot[bot]'
61- uses : redhat-actions/push-to-registry@v2
62- with :
63- image : ${{ steps.build-image.outputs.image }}
64- tags : ${{ steps.build-image.outputs.tags }}
65- registry : ${{ secrets.REGISTRY_USER && env.REGISTRY || env.GH_REGISTRY }}
You can’t perform that action at this time.
0 commit comments