train-model: Array Sorting @ EC2 Spot #3
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: Test Workflow with GitHub Container Registry | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Log in to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v2 | |
with: | |
context: ./.devcontainer | |
push: true | |
tags: ghcr.io/${{ github.repository }}/devcontainer:latest | |
test: | |
needs: build | |
runs-on: ubuntu-latest | |
container: ghcr.io/${{ github.repository }}/devcontainer:latest | |
steps: | |
- name: Test | |
run: | | |
echo "success" |