diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e241b81..8769793 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -39,3 +39,27 @@ jobs: steps: - uses: actions/checkout@v4 - run: docker build -t h23w_01-backend . + + ghcr: + runs-on: ubuntu-latest + permissions: + contents: write + packages: write + needs: + - docker-build + if: ${{ success() }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Login + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: trap-jp + password: ${{ secrets.GITHUB_TOKEN }} + - name: Push + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: ghcr.io/trap-jp/h23w-01-backend:main