Skip to content

Commit

Permalink
fixup! (wip)[actions] trigger build workflow after docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lmnotran committed Jun 20, 2024
1 parent ee42dd1 commit e05328f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ name: Build

on:
workflow_run:
workflows: [Publish to DockerHub]
workflows: ["Docker"]
types: [completed]

concurrency:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ jobs:
- name: Build and export to Docker context
uses: docker/build-push-action@v5
with:
build-args: |
BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
context: .
file: docker/Dockerfile
load: true
Expand Down Expand Up @@ -146,7 +148,7 @@ jobs:
- name: Load Docker image
run: |
docker load --input ${{ steps.download.outputs.download-path }}/${{ env.DOCKER_IMAGE_ARTIFACT_NAME }}
docker image ls -a
docker inspect ${{ env.SHA_TAG }}
- name: Push Docker image
run: |
Expand Down
5 changes: 5 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
ARG BASE_IMAGE='ubuntu:22.04'
ARG BUILD_DATE

FROM ${BASE_IMAGE} as base

ENV TZ="America/New_York"
Expand Down Expand Up @@ -26,7 +28,10 @@ RUN ./script/bootstrap python

# ==============================================================================

# Label the build date before downloading slc to force slc to always be downloaded during a docker build

FROM base AS ot-efr32-dev
LABEL build_date=${BUILD_DATE}

COPY ./script/bootstrap_silabs \
./script/
Expand Down

0 comments on commit e05328f

Please sign in to comment.