Skip to content

Commit ed694c0

Browse files
authored
Merge pull request #17 from hluk/drop-image-build
Drop image guild on GitHub Actions
2 parents 5f41b39 + 741b6d7 commit ed694c0

1 file changed

Lines changed: 0 additions & 40 deletions

File tree

.github/workflows/resultsdb_frontend.yml

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -23,43 +23,3 @@ jobs:
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 }}

0 commit comments

Comments
 (0)