ci: add docker push

このコミットが含まれているのは:
sinkaroid 2022-12-11 01:11:07 +07:00
コミット 9227b8fce9
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: ABD69470B2390135
2個のファイルの変更5行の追加3行の削除

ファイルの表示

@ -14,7 +14,9 @@ jobs:
- name: Log into GitHub Container Registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ghcr.io/sinkaroid/jandapress:latest
run: |
docker build . -t ghcr.io/sinkaroid/jandapress:${{ steps.tags.outputs.name }}
- name: Push the Docker image
run: docker push ghcr.io/sinkaroid/jandapress:latest
run: |
docker push ghcr.io/sinkaroid/jandapress:${{ steps.tags.outputs.name }}

ファイルの表示

@ -4,5 +4,5 @@ COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
EXPOSE 3001
EXPOSE 3000
CMD ["node", "build/src/index.js"]