mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Add github action to pre-build containers
This commit is contained in:
parent
6d46d17e30
commit
ad370cbbcd
43
.github/workflows/devcontainer-build.yml
vendored
Normal file
43
.github/workflows/devcontainer-build.yml
vendored
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
name: Devcontainer Pre-Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
# push:
|
||||||
|
# branches:
|
||||||
|
# - "master"
|
||||||
|
# tags:
|
||||||
|
# - "v*.*.*"
|
||||||
|
# pull_requests:
|
||||||
|
# branches:
|
||||||
|
# - "master"
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: "${{ github.workflow }}"
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
id: checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
-
|
||||||
|
name: Login to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Pre-build dev container image
|
||||||
|
uses: devcontainers/ci@v0.2
|
||||||
|
with:
|
||||||
|
subFolder: .github
|
||||||
|
imageName: ghcr.io/${{ github.repository }}-devcontainer
|
||||||
|
cacheFrom: ghcr.io/${{ github.repository }}-devcontainer
|
||||||
|
push: always
|
Loading…
Reference in New Issue
Block a user