From acd521182677d6e66537147ccf7c40bd97105df5 Mon Sep 17 00:00:00 2001 From: ripps818 Date: Wed, 14 Feb 2024 16:33:21 -0600 Subject: [PATCH] Update docker-image.yml first draft to add ghcr.io uploading --- .github/workflows/docker-image.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 52b4474..dbb9f28 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -7,7 +7,6 @@ on: branches: [ "main" ] jobs: - build: runs-on: ubuntu-latest @@ -15,6 +14,17 @@ jobs: packages: write steps: - - uses: actions/checkout@v4 + - name: Checkout Github Actions + uses: actions/checkout@main + + - name: Login to GHCR + uses: docker/login-action@main + with: + registry: ghcr.io + username: ${{github.actor}} + password: ${{secrets.GHCR_TOKEN}} + - name: Build the Docker image - run: docker build . --file Dockerfile --tag palworld-wine:$(date +%s) + run: | + docker build . --file Dockerfile --tag ghcr.io/ripps818/palworld-wine:latest + docker push ghcr.io/ripps818/palworld-wine:latest