Skip to content

Finished!

Finished! #7

Workflow file for this run

name: Build and Upload Dockerfiles
on:
push:
branches:
- main
jobs:
build-and-upload-dockerfiles:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build and Upload Dockerfiles
run: |
for file in *.Dockerfile; do
IMAGE_NAME=ghcr.io/aw2c/docker_dev-envs:${file%.Dockerfile}
docker build -t $IMAGE_NAME -f $file .
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
docker push $IMAGE_NAME
done