-
Notifications
You must be signed in to change notification settings - Fork 10
52 lines (44 loc) · 1.33 KB
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#
# Copyright: 2022, The Geany contributors
# License: GNU GPL v2 or later
name: Build CI Docker Images
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
schedule:
# Run weekly on Friday
- cron: '34 5 * * FRI'
# cancel already running builds of the same branch or pull request
concurrency:
group: ci-${{ github.head_ref }} || concat(${{ github.ref }}
cancel-in-progress: true
jobs:
mingw64:
name: Build Docker image for mingw64 CI builds
runs-on: ubuntu-22.04
permissions:
packages: write
env:
DOCKER_REGISTRY: "ghcr.io"
DOCKER_IMAGE_NAME: "geany-mingw64-ci"
DOCKER_IMAGE_TAG: "ghcr.io/geany/geany-mingw64-ci:latest"
steps:
- name: Checkout Build Scripts
uses: actions/checkout@v3
- name: Log In To The Container Registry
uses: docker/login-action@v2
with:
registry: ${{ env.DOCKER_REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build And Push Docker Image
run: |
cd builders
bash start_build.sh --log-to-stdout --mingw64 --rebuild-images
docker tag ${{ env.DOCKER_IMAGE_NAME }} ${{ env.DOCKER_IMAGE_TAG }}
docker push ${{ env.DOCKER_IMAGE_TAG }}