Skip to content

rename for docker container #3

rename for docker container

rename for docker container #3

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/${{ github.repository }}:${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