mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-22 21:02:24 +03:00
Extract docker image building during CI to its own workflow
This commit is contained in:
parent
de5b895fad
commit
407134bab1
4 changed files with 40 additions and 18 deletions
14
.github/workflows/ci-docker-image-build.yml
vendored
Normal file
14
.github/workflows/ci-docker-image-build.yml
vendored
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
name: Build docker image
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- './Dockerfile'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-docker-image:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- run: docker build -t shlink-docker-image:temp .
|
34
.github/workflows/ci.yml
vendored
34
.github/workflows/ci.yml
vendored
|
@ -1,12 +1,28 @@
|
||||||
name: Continuous integration
|
name: Continuous integration
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request: null
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- 'LICENSE'
|
||||||
|
- './.*'
|
||||||
|
- './*.md'
|
||||||
|
- './*.xml'
|
||||||
|
- './*.yml*'
|
||||||
|
- './*.json5'
|
||||||
|
- './*.neon'
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- develop
|
- develop
|
||||||
- 2.x
|
- 2.x
|
||||||
|
paths-ignore:
|
||||||
|
- 'LICENSE'
|
||||||
|
- './.*'
|
||||||
|
- './*.md'
|
||||||
|
- './*.xml'
|
||||||
|
- './*.yml*'
|
||||||
|
- './*.json5'
|
||||||
|
- './*.neon'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
static-analysis:
|
static-analysis:
|
||||||
|
@ -157,19 +173,3 @@ jobs:
|
||||||
coverage-db
|
coverage-db
|
||||||
coverage-api
|
coverage-api
|
||||||
coverage-cli
|
coverage-cli
|
||||||
|
|
||||||
build-docker-image:
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 100
|
|
||||||
- uses: marceloprado/has-changed-path@v1
|
|
||||||
id: changed-dockerfile
|
|
||||||
with:
|
|
||||||
paths: ./Dockerfile
|
|
||||||
- if: ${{ steps.changed-dockerfile.outputs.changed == 'true' }}
|
|
||||||
run: docker build -t shlink-docker-image:temp .
|
|
||||||
- if: ${{ steps.changed-dockerfile.outputs.changed != 'true' }}
|
|
||||||
run: echo "Dockerfile didn't change. Skipped"
|
|
||||||
|
|
|
@ -4,6 +4,14 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- develop
|
||||||
|
paths-ignore:
|
||||||
|
- 'LICENSE'
|
||||||
|
- './.*'
|
||||||
|
- './*.md'
|
||||||
|
- './*.xml'
|
||||||
|
- './*.yml*'
|
||||||
|
- './*.json5'
|
||||||
|
- './*.neon'
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
|
|
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) 2016-2021 Alejandro Celaya
|
Copyright (c) 2016-2023 Alejandro Celaya
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
Loading…
Reference in a new issue