Skip to content

Commit e681524

Browse files
committed
Improve workflow
Comment out push
1 parent 6091ddf commit e681524

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

.github/workflows/devcontainer-freertos-nxp.yaml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@
44
name: Push devcontainer Docker image [FreeRTOS-NXP]
55

66
env:
7-
CONTAINER_REPO: ghcr.io
8-
CONTAINER_NAME: dev-container-freertos-nxp
9-
CONTAINER_SRC_FILE: .devcontainer/FreeRTOS-NXP/Dockerfile.FreeRTOS-NXP.SRC
7+
CONTAINER_SOURCE_FILE: .devcontainer/FreeRTOS-NXP/Dockerfile.FreeRTOS-NXP.SRC
108
CONTAINER_VERSION_FILE: .devcontainer/FreeRTOS-NXP/Dockerfile.FreeRTOS-NXP
119

1210
on:
1311
push:
14-
# branches:
15-
# - main
12+
branches:
13+
- main
1614
paths:
17-
- '**Dockerfile.FreeRTOS-NXP'
15+
- '**Dockerfile.FreeRTOS-NXP' # We only care if the version has changed!
1816

1917
workflow_dispatch:
2018

@@ -27,7 +25,6 @@ jobs:
2725
packages: write
2826

2927
steps:
30-
3128
- name: Checkout Repository
3229
uses: actions/checkout@v4
3330

@@ -48,8 +45,7 @@ jobs:
4845
- name: Build and Push Docker Image
4946
uses: docker/build-push-action@v5
5047
with:
51-
file: ${{ env.CONTAINER_SRC_FILE }}
48+
file: ${{ env.CONTAINER_SOURCE_FILE }}
5249
push: ${{ github.event_name != 'pull_request' }}
53-
tags: |
54-
${{ steps.meta.outputs.tags }}
50+
tags: ${{ steps.meta.outputs.tags }}
5551
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/devcontainer-smoketest.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ on:
55
paths:
66
- '.devcontainer/**/*'
77
- '.github/workflows/*'
8-
push:
9-
paths:
10-
- '.devcontainer/**/*'
11-
- '.github/workflows/*'
8+
# push:
9+
# paths:
10+
# - '.devcontainer/**/*'
11+
# - '.github/workflows/*'
1212

1313
jobs:
1414
build-target:

0 commit comments

Comments
 (0)