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)