Skip to content

Commit

Permalink
chore: deploy docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
Mokto committed May 10, 2024
1 parent 13524c2 commit 885dda4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/docker-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and push Docker image

on:
push:
tags:
- '*'

jobs:
build-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: get-npm-version
id: package-version
uses: martinbeentjes/[email protected]
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: Mokto
password: ${{ secrets.PAT_PACKAGES }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: ghcr.io/mokto/apihero:${{ steps.package-version.outputs.current-version}}
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
- name: Release Please Action
uses: google-github-actions/release-please-action@v4
with:
token: ${{ secrets.PERSONAL_TOKEN }}
token: ${{ secrets.PAT_REPO }}
config-file: release-please-config.json

0 comments on commit 885dda4

Please sign in to comment.