name: Docker Image CI on: push: permissions: packages: write jobs: build: runs-on: ubuntu-latest steps: - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: registry: ghcr.io username: token password: ${{ secrets.GITHUB_TOKEN }} - name: Checkout uses: actions/checkout@v4 with: submodules: "recursive" - name: Build the Docker image run: docker build . --label "org.opencontainers.image.source=https://github.com/DelusionalLogic/dht" --file Dockerfile --tag app - name: Push the image run: | docker tag app ghcr.io/delusionallogic/dht:1.${{ github.run_number }} docker push ghcr.io/delusionallogic/dht:1.${{ github.run_number }} docker tag app ghcr.io/delusionallogic/dht:latest docker push ghcr.io/delusionallogic/dht:latest