Skip to content

Docker Image CI

Docker Image CI #5

name: Docker Image CI
on: create
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build --pull --rm -f "Image/Dockerfile" -t flutterdevcontainer:latest "Image"
- name: Push docker image to ghcr.io
uses: docker/login-action@v1
with:
registry: ghcr.io
username: gdscparuluniversity
password: ${{ secrets.GITHUB_TOKEN }}
- run: |
docker tag flutterdevcontainer:latest ghcr.io/gdscparuluniversity/flutterdevcontainer:latest
docker push ghcr.io/gdscparuluniversity/flutterdevcontainer:latest