Skip to content

Commit

Permalink
Fix PR actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mjanez committed Sep 15, 2023
1 parent 1413ffb commit 0315a3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: Build ckan-pycsw-dev images
on:
push:
branches:
- main
- latest
pull_request:
branches:
- main
- latest

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
docker-push:
name: runner/build-docker-push
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
if: github.event_name == 'push' && github.ref == 'refs/heads/main' || github.ref == 'refs/heads/latest'
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
id: get-build-name
run: echo "image_name=${{ fromJSON(steps.docker-push.outputs.metadata)['image.name'] }}" >> $GITHUB_ENV

- name: Linting Dockerfile with hadolint
- name: Linting Dockerfile with hadolint in GH Actions
id: hadolint
uses: hadolint/hadolint-action@v3.1.0
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: Build ckan-pycsw images
on:
push:
branches:
- main
- latest
pull_request:
branches:
- main
- latest

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
docker-push:
name: runner/build-docker-push
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
if: github.event_name == 'push' && github.ref == 'refs/heads/main' || github.ref == 'refs/heads/latest'
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
id: get-build-name
run: echo "image_name=${{ fromJSON(steps.docker-push.outputs.metadata)['image.name'] }}" >> $GITHUB_ENV

- name: Linting Dockerfile with hadolint
- name: Linting Dockerfile with hadolint in GH Actions
id: hadolint
uses: hadolint/hadolint-action@v3.1.0
with:
Expand Down

0 comments on commit 0315a3c

Please sign in to comment.