added build arg #10
Workflow file for this run
This file contains 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
name: Docker Image for TfL Training on Anomaly Detection | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- adding-devcontainer | ||
jobs: | ||
build_and_publish_devcontainer: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
lfs: true | ||
persist-credentials: false | ||
- name: Build and push image to ghcr | ||
run: | | ||
docker login --username ${{github.actor}} --password ${{github.token}} ghcr.io | ||
docker build ./.devcontainer -t ghcr.io/aai-institute/tfl-training-practical-anomaly-detection:latest | ||
docker push ghcr.io/aai-institute/tfl-training-practical-anomaly-detection:latest | ||
with: | ||
build_args: | ||
PARTICIPANT_BUCKET_READ_SECRET=${{ secrets.PARTICIPANT_BUCKET_READ_SECRET }} | ||