From a3f58dc59b1dc4f7ce8e946c62e21e0d4ad7b5a9 Mon Sep 17 00:00:00 2001 From: Mark Ettema Date: Mon, 24 May 2021 10:16:53 +0700 Subject: [PATCH] =?UTF-8?q?Login=20into=20GitHub=20and=20push=20?= =?UTF-8?q?=F0=9F=A4=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-image.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 81d25a6..7a12067 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -13,6 +13,22 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Build the Docker image - run: docker build src/ --file src/Dockerfile --tag "ghcr.io/neothor/steam-openid-connect-provider:$(date +%s)" + - + name: Checkout + uses: actions/checkout@v2 + + - + name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + - + name: Build and push + uses: docker/build-push-action@v2 + with: + context: src/ + push: true + tags: ghcr.io/neothor/steam-openid-connect-provider:$(date +%s)