27b8c5be8a9b44b906aad0c12d20637332e93923
- Author
- TheEdgeOfRage <git@theedgeofrage.com>
- Committer
- TheEdgeOfRage <git@theedgeofrage.com>
- Date
Message
Add github action to publish docker images
Diff
1diff --git a/.github/workflows/docker-publish.yaml b/.github/workflows/docker-publish.yaml
2new file mode 100644
3index 0000000000000000000000000000000000000000..2f4cbd6ba20865dc871a87b6ba795c5f4eb78704
4--- /dev/null
5+++ b/.github/workflows/docker-publish.yaml
6@@ -0,0 +1,39 @@
7+---
8+name: Docker build
9+
10+'on':
11+ push:
12+ branches:
13+ - main
14+
15+jobs:
16+ build:
17+ name: build
18+ runs-on: ubuntu-latest
19+ timeout-minutes: 10
20+ steps:
21+ - name: Checkout
22+ uses: actions/checkout@v6
23+
24+ - name: Set up Docker Buildx
25+ uses: docker/setup-buildx-action@v3
26+
27+ - name: Login to Docker Hub
28+ uses: docker/login-action@v3
29+ with:
30+ username: ${{ secrets.DOCKER_USERNAME }}
31+ password: ${{ secrets.DOCKER_PASSWORD }}
32+
33+ - name: Build and push API image
34+ uses: docker/build-push-action@v6
35+ with:
36+ push: true
37+ tags: theedgeofrage/ytrssil:api
38+ target: api
39+
40+ - name: Build and push migrations image
41+ uses: docker/build-push-action@v6
42+ with:
43+ push: true
44+ tags: theedgeofrage/ytrssil:migrations
45+ target: migrations