From b2f38adac5ac69858815af83cd62f0fc31692be1 Mon Sep 17 00:00:00 2001 From: AlekseyZhmulin Date: Mon, 16 Oct 2023 20:31:38 +0300 Subject: [PATCH] Change base container --- .github/workflows/docker-publish.yml | 6 ++++++ Dockerfile | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 \