Update docker.yml #204
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: Docker Image CI | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
with: | |
platforms: all | |
- uses: actions/checkout@v3 | |
- run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin | |
- run: docker buildx create --use | |
- name: Extract branch name | |
run: echo "GITHUB_BRANCH=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//-/g')" >> $GITHUB_ENV | |
- name: Print env variables for debugging | |
run: | | |
echo GITHUB_BRANCH=$GITHUB_BRANCH | |
echo GITHUB_REPOSITORY=$GITHUB_REPOSITORY | |
- run: docker buildx bake --progress=plain --push |