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