Skip to content

Commit 144b36f

Browse files
Update DevContainer workflow template
1 parent 2d794a0 commit 144b36f

File tree

3 files changed

+7
-44
lines changed

3 files changed

+7
-44
lines changed

.devcontainer/devcontainer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@
2626
]
2727
}
2828
}
29-
}
3029
}

.github/workflows/devcontainer.yaml

Lines changed: 6 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -12,46 +12,10 @@ on:
1212
- pyproject.toml
1313
- poetry.lock
1414
- build.gradle
15-
1615
jobs:
17-
build:
18-
runs-on: ubuntu-latest
19-
steps:
20-
- name: Delete huge unnecessary tools folder
21-
run: rm -rf /opt/hostedtoolcache
22-
- name: Checkout (GitHub)
23-
uses: actions/checkout@v3
24-
- name: Set up QEMU for multi-architecture builds
25-
uses: docker/setup-qemu-action@v1
26-
- name: Setup Docker buildx for multi-architecture builds
27-
uses: docker/setup-buildx-action@v2
28-
with:
29-
use: true
30-
- name: Login to GitHub Container Registry
31-
uses: docker/login-action@v2
32-
with:
33-
registry: ghcr.io
34-
username: ${{ github.repository_owner }}
35-
password: ${{ secrets.GITHUB_TOKEN }}
36-
- name: Create envfile
37-
run: |
38-
echo 'GITHUB_USER=${{ github.repository_owner }}' >> .env
39-
echo 'GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}' >> .env
40-
- name: Prune
41-
uses: vlaurin/action-ghcr-prune@v0.5.0
42-
with:
43-
token: ${{ secrets.GITHUB_TOKEN }}
44-
organization: ${{ github.repository_owner }}
45-
container: ${{ github.event.repository.name }}
46-
keep-last: 6
47-
continue-on-error: true
48-
- name: Build and push
49-
uses: docker/build-push-action@v4
50-
with:
51-
tags: ghcr.io/${{ github.repository }}:devcontainer
52-
push: true
53-
file: .devcontainer/Dockerfile
54-
context: .
55-
platforms: linux/amd64,linux/arm64
56-
build-args: |-
57-
FURY_AUTH=${{ secrets.FURY_AUTH }}
16+
call-workflow-passing-data:
17+
uses: syngenta-digital/script-shell-data-pipelines-orb/.github/workflows/devcontainer.yaml@main
18+
with: {}
19+
secrets:
20+
_github_token: ${{ secrets.GITHUB_TOKEN }}
21+
_fury_auth: ${{ secrets.FURY_AUTH }}

0 commit comments

Comments
 (0)