|
13 | 13 | - poetry.lock
|
14 | 14 | - build.gradle
|
15 | 15 | 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