From b000b97bbf1c44bdfdbc9c2acbef7bf1e7d2c02f Mon Sep 17 00:00:00 2001 From: SuperDev Date: Wed, 21 Dec 2022 13:41:56 -0600 Subject: [PATCH] Create docker-image.yml --- .github/workflows/docker-image.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..baee532 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,18 @@ +name: publish +on: [push] +jobs: +publish-hello-docker-image: +runs-on: ubuntu-latest +steps: +- uses: actions/checkout@v2 +- name: Login to GitHub Container Registry +uses: docker/login-action@v1 +with: +registry: ghcr.io +username: ${{ github.actor }} +password: ${{ secrets.DEPLOY_TOKEN }} +- name: Build the Docker image +run: | + docker build . --tag ghcr.io/supernova3339/anonupload:latest + docker run ghcr.io/supernova3339/anonupload:latest + docker push ghcr.io/supernova3339/anonupload:latest