Create tech-radar.csv #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow uses actions that are not certified by GitHub. | |
| # They are provided by a third-party and are governed by | |
| # separate terms of service, privacy policy, and support | |
| # documentation. | |
| # GitHub recommends pinning actions to a commit SHA. | |
| # To get a newer version, you will need to update the SHA. | |
| # You can also reference a tag or branch, but the action may change without warning. | |
| name: Build and Publish Docker Image | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| jobs: | |
| release: | |
| if: github.ref_name == 'main' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # to be able to publish a GitHub release | |
| issues: write # to be able to comment on released issues | |
| packages: write # to be able to push to packages | |
| pull-requests: write # to be able to comment on released pull requests | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and Push Images | |
| id: build_and_push | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| set -e | |
| npm install -g @devcontainers/cli | |
| # Build and push images | |
| devcontainer build --workspace-folder src/python --push true --image-name ghcr.io/argodevops/python-dev | |
| devcontainer build --workspace-folder src/universal --push true --image-name ghcr.io/argodevops/universal-dev | |