Skip to content

Commit

Permalink
🔧 push image to ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
H1rono committed Dec 23, 2023
1 parent 0b94b84 commit 5eef12f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5eef12f

Please sign in to comment.