Skip to content
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
12 changes: 6 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@ jobs:
- name: Buildah Action
uses: redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056
with:
image: ghcr.io/${{ github.repository }}
image: ${{ github.repository }}
tags: ${{ github.event_type == 'push' && github.ref_name || github.sha }}
containerfiles: |
./Containerfile
extra-args: |
--target=build
- name: Run go vet
run: podman run ghcr.io/${{ github.repository }}:${{ github.sha }} go vet -v ./...
run: podman run ${{ github.repository }}:${{ github.sha }} go vet -v ./...
- name: Run go test
run: podman run ghcr.io/${{ github.repository }}:${{ github.sha }} go test -v ./...
run: podman run ${{ github.repository }}:${{ github.sha }} go test -v ./...

- name: Buildah Action
# Push events mean either a tag or main branch
if: github.event_name == 'push'
uses: redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056
with:
image: ghcr.io/${{ github.repository }}
image: ${{ github.repository }}
tags: ${{ github.ref_name }}
containerfiles: |
./Containerfile
Expand All @@ -50,9 +50,9 @@ jobs:
uses: redhat-actions/push-to-registry@5ed88d269cf581ea9ef6dd6806d01562096bee9c # v2.8
id: push
with:
image: ghcr.io/${{ github.repository }}
image: ${{ github.repository }}
tags: ${{ github.ref_name }}
registry: ghcr.io/${{ github.repository }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
extra-args: |
Expand Down