Skip to content

Commit f81ac9e

Browse files
chore: revert last change
1 parent 144b36f commit f81ac9e

File tree

1 file changed

+41
-6
lines changed

1 file changed

+41
-6
lines changed

.github/workflows/devcontainer.yaml

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,44 @@ on:
1313
- poetry.lock
1414
- build.gradle
1515
jobs:
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 }}
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout (GitHub)
20+
uses: actions/checkout@v4
21+
- name: Set up QEMU for multi-architecture builds
22+
uses: docker/setup-qemu-action@v3
23+
with:
24+
image: tonistiigi/binfmt:qemu-v7.0.0-28
25+
- name: Setup Docker buildx for multi-architecture builds
26+
uses: docker/setup-buildx-action@v3
27+
with:
28+
use: true
29+
- name: Login to GitHub Container Registry
30+
uses: docker/login-action@v2
31+
with:
32+
registry: ghcr.io
33+
username: ${{ github.repository_owner }}
34+
password: ${{ secrets.GITHUB_TOKEN }}
35+
- name: Create envfile
36+
run: |
37+
echo 'GITHUB_USER=${{ github.repository_owner }}' >> .env
38+
echo 'GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}' >> .env
39+
- name: Prune
40+
uses: vlaurin/action-ghcr-prune@v0.5.0
41+
with:
42+
token: ${{ secrets.GITHUB_TOKEN }}
43+
organization: ${{ github.repository_owner }}
44+
container: ${{ github.event.repository.name }}
45+
keep-last: 6
46+
continue-on-error: true
47+
- name: Build and push
48+
uses: docker/build-push-action@v4
49+
with:
50+
tags: ghcr.io/${{ github.repository }}:devcontainer
51+
push: true
52+
file: .devcontainer/Dockerfile
53+
context: .
54+
platforms: linux/amd64,linux/arm64
55+
build-args: |-
56+
FURY_AUTH=${{ secrets.FURY_AUTH }}

0 commit comments

Comments
 (0)