mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 11:51:19 +00:00
chore(ci): Improve structure in devcontainer build
This commit is contained in:
35
.github/workflows/devcontainer-build.yml
vendored
35
.github/workflows/devcontainer-build.yml
vendored
@@ -24,22 +24,19 @@ jobs:
|
|||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
- uses: actions/checkout@v4
|
||||||
name: Checkout
|
with:
|
||||||
id: checkout
|
persist-credentials: false
|
||||||
uses: actions/checkout@v4
|
- name: Login to GitHub Container Registry
|
||||||
-
|
uses: docker/login-action@v3
|
||||||
name: Login to GitHub Container Registry
|
with:
|
||||||
uses: docker/login-action@v3
|
registry: ghcr.io
|
||||||
with:
|
username: ${{ github.actor }}
|
||||||
registry: ghcr.io
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
username: ${{ github.actor }}
|
- name: Pre-build dev container image
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
uses: devcontainers/ci@v0.3
|
||||||
-
|
with:
|
||||||
name: Pre-build dev container image
|
subFolder: .github
|
||||||
uses: devcontainers/ci@v0.3
|
imageName: ghcr.io/${{ github.repository }}-devcontainer
|
||||||
with:
|
cacheFrom: ghcr.io/${{ github.repository }}-devcontainer
|
||||||
subFolder: .github
|
push: always
|
||||||
imageName: ghcr.io/${{ github.repository }}-devcontainer
|
|
||||||
cacheFrom: ghcr.io/${{ github.repository }}-devcontainer
|
|
||||||
push: always
|
|
||||||
|
|||||||
Reference in New Issue
Block a user