diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 515ea01..c053ce3 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -11,10 +11,16 @@ jobs: # See also https://docs.docker.com/docker-hub/builds/ push: runs-on: ubuntu-latest + container: + image: ghcr.io/owner/image + credentials: + username: ${{ github.actor }} + password: ${{ secrets.github_token }} steps: - uses: actions/checkout@v2 - name: Build image + run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin run: docker build . --file Dockerfile --tag $IMAGE_NAME - name: Log into registry diff --git a/Dockerfile b/Dockerfile index fe6fef2..58cd89f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -FROM embox/emdocker as build +FROM ghcr.io/embox/emdocker/emdocker:latest as build RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \