Compare commits

..

15 Commits

Author SHA1 Message Date
d2676945b2 Effectivly disable the pipeline 2025-04-21 15:49:09 +02:00
0e646f2311 Update docker image tag
All checks were successful
Build Flutter SDK Docker Image / build (push) Successful in 4m7s
2025-04-18 11:16:03 +02:00
f416218600 Fix image tag
All checks were successful
Build Flutter SDK Docker Image / build (push) Successful in 4m19s
2025-02-27 18:45:14 +01:00
ThompsonNye
d392edb660 Only schedule build on fridays
All checks were successful
Build Flutter SDK Docker Image / build (push) Successful in 4m10s
2024-09-07 12:09:39 +02:00
ThompsonNye
c0377f129a Restore normal cron schedule
All checks were successful
Build Flutter SDK Docker Image / build (push) Successful in 3m16s
2024-09-06 19:59:55 +02:00
ThompsonNye
80a3efe9be Test cron
Some checks are pending
Build Flutter SDK Docker Image / build (push) Has started running
2024-09-06 19:58:30 +02:00
ThompsonNye
fb56627568 Test cron
Some checks are pending
Build Flutter SDK Docker Image / build (push) Has started running
2024-09-06 19:55:20 +02:00
ThompsonNye
6221260c9a Test cron
Some checks failed
Build Flutter SDK Docker Image / build (push) Has been cancelled
2024-09-06 19:54:25 +02:00
ThompsonNye
dd92c503fa Change to daily and move back because it runs for UTC
All checks were successful
Build Flutter SDK Docker Image / build (push) Successful in 3m26s
2024-09-06 18:54:36 +02:00
ThompsonNye
71b5f60507 Remove changing user
All checks were successful
Build Flutter SDK Docker Image / build (push) Successful in 3m23s
2024-09-05 14:45:08 +02:00
ThompsonNye
db8d1087b2 Switch to non-root user
All checks were successful
Build Flutter SDK Docker Image / build (push) Successful in 4m51s
2024-09-05 14:30:04 +02:00
ThompsonNye
8fe4b45a78 Update image tag 2024-09-05 14:29:44 +02:00
ThompsonNye
201ec36e4e Automatically run a build on changes
All checks were successful
Build Flutter SDK Docker Image / build (push) Successful in 3m25s
2024-09-05 14:01:59 +02:00
ThompsonNye
a1efa7417a Allow manual runs 2024-09-05 14:00:10 +02:00
ThompsonNye
8428428db9 Fix docker image tag 2024-09-05 14:00:04 +02:00
2 changed files with 13 additions and 8 deletions

View File

@@ -1,10 +1,14 @@
name: Build Flutter SDK Docker Image name: Build Flutter SDK Docker Image
on: on:
schedule: push:
- cron: '0 4 * * 0' branches:
workflow_run: - some-branch-name-which-should-never-trigger-the-build
types: # schedule:
- requested # - cron: '0 2 * * FRI'
# push:
# branches:
# - main
# workflow_dispatch:
jobs: jobs:
build: build:
@@ -37,5 +41,5 @@ jobs:
- name: Build and push, channel 'stable' - name: Build and push, channel 'stable'
run: | run: |
export CHANNEL=stable export CHANNEL=stable
export IMAGE_WITH_TAG=${{ vars.DOCKER_REGISTRY_HOST }}/${{ vars.DOCKER_REPO_AND_IMAGE }}:stable export IMAGE_WITH_TAG=${{ vars.DOCKER_REGISTRY_HOST }}/${{ vars.DOCKER_REPO_AND_IMAGE }}:$CHANNEL
docker buildx build . --build-arg CHANNEL=$CHANNEL -t $IMAGE_WITH_TAG --no-cache --push docker buildx build . --build-arg CHANNEL=$CHANNEL -t $IMAGE_WITH_TAG --no-cache --push

View File

@@ -5,8 +5,9 @@ ARG CHANNEL=stable
RUN apt update RUN apt update
RUN apt install -y curl git wget unzip RUN apt install -y curl git wget unzip
RUN apt clean RUN apt clean
# download Flutter SDK from Flutter Github repo \
RUN git clone -b ${CHANNEL} https://github.com/flutter/flutter.git /usr/local/flutter ENV FLUTTER_ROOT=/usr/local/flutter
RUN git clone -b ${CHANNEL} https://github.com/flutter/flutter.git ${FLUTTER_ROOT}
# Set flutter environment path # Set flutter environment path
ENV PATH="/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin:${PATH}" ENV PATH="/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin:${PATH}"