Skip to content

Build CoDev Container #2

Build CoDev Container

Build CoDev Container #2

name: Build CoDev Container
on:
push:
branches:
- master
workflow_dispatch:
env:
CONTAINER_NAME: registry.gitlab.com/currax-data-science/code_space_ml_dev_container
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Docker Login
uses: docker/[email protected]
with:
registry: registry.gitlab.com
username: ${{secrets.DOCKER_USER}}
password: ${{secrets.DOCKER_TOKEN}}
- name: Build the Docker image
run: docker build -t $CONTAINER_NAME:${{github.run_number}} -f docker/Dockerfile.codev .
- name: Push Docker Image
run: |
docker tag docker push $CONTAINER_NAME:${{github.run_number}} $CONTAINER_NAME:latest
docker push $CONTAINER_NAME:${{github.run_number}}
docker push $CONTAINER_NAME:latest