diff --git a/.github/workflows/ghcr.yml b/.github/workflows/ghcr.yml new file mode 100644 index 0000000..5dca8d4 --- /dev/null +++ b/.github/workflows/ghcr.yml @@ -0,0 +1,30 @@ +name: Push to github container register + +on: + push: + branches: [main] + workflow_dispatch: + +jobs: + push-docker: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v6 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v4 + - name: Login to GitHub Container Registry + uses: docker/login-action@v4 + with: + registry: git.neody.ad.jp + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Build and push image + uses: docker/build-push-action@v7 + with: + context: . + push: true + tags: | + git.neody.ad.jp/tuna2134/cecilia:latest \ No newline at end of file