Skip to content

Commit

Permalink
ghactions: Skip yocto-check-layer on tag
Browse files Browse the repository at this point in the history
There is no reason to run this job when tagging and it takes a long time
so skip it.
  • Loading branch information
JoshuaWatt committed Oct 6, 2023
1 parent 6a09786 commit 2b0061b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ jobs:
./meta-bitbake-hashserver/scripts/validate-layer-json.py
yocto-check-layer:
# Don't run this on tag pushes
if: github.event_name != 'push' || ! startsWith(github.ref, 'refs/tags/')
needs:
- create-layer-cache

Expand Down Expand Up @@ -283,6 +285,7 @@ jobs:
podman run --rm -it localhost/bitbake-hashserver-test-container-image:latest
publish:
if: github.event_name == 'push'
needs:
- build
- test
Expand All @@ -300,12 +303,10 @@ jobs:
name: "${{ env.IMAGE_NAME }}-${{ env.MACHINE }}-oci"

- name: Login to registry
if: ${{ github.event_name == 'push' }}
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | skopeo login ghcr.io --username $ --password-stdin
- name: Push image
if: ${{ github.event_name == 'push' }}
run: |
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
Expand Down

0 comments on commit 2b0061b

Please sign in to comment.