|
| 1 | +name: Release |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + tags: |
| 6 | + - 'v*' |
| 7 | + |
| 8 | +jobs: |
| 9 | + release-linux-amd64: |
| 10 | + runs-on: ubuntu-latest |
| 11 | + steps: |
| 12 | + - uses: actions/checkout@v4 |
| 13 | + |
| 14 | + - name: Log in to Docker Hub |
| 15 | + uses: docker/login-action@v3 |
| 16 | + with: |
| 17 | + username: ${{ secrets.REGISTRY_USERNAME }} |
| 18 | + password: ${{ secrets.REGISTRY_PASSWORD }} |
| 19 | + |
| 20 | + - name: Build and Push Frontend Image |
| 21 | + uses: docker/build-push-action@v6 |
| 22 | + with: |
| 23 | + context: . |
| 24 | + file: build/Dockerfile.frontend.linux.amd64 |
| 25 | + push: true |
| 26 | + tags: flarexio/wallet-app:${{ github.ref_name }}-linux-amd64 |
| 27 | + |
| 28 | + - name: Build and Push Backend Image |
| 29 | + uses: docker/build-push-action@v6 |
| 30 | + with: |
| 31 | + context: . |
| 32 | + file: build/Dockerfile.backend.linux.amd64 |
| 33 | + push: true |
| 34 | + tags: flarexio/wallet:${{ github.ref_name }}-linux-amd64 |
| 35 | + |
| 36 | + release-manifest: |
| 37 | + runs-on: ubuntu-latest |
| 38 | + needs: release-linux-amd64 |
| 39 | + steps: |
| 40 | + - name: Log in to Docker Hub |
| 41 | + uses: docker/login-action@v3 |
| 42 | + with: |
| 43 | + username: ${{ secrets.REGISTRY_USERNAME }} |
| 44 | + password: ${{ secrets.REGISTRY_PASSWORD }} |
| 45 | + |
| 46 | + - name: Create and Push Frontend Manifest |
| 47 | + run: | |
| 48 | + docker manifest create flarexio/wallet-app:${{ github.ref_name }} \ |
| 49 | + flarexio/wallet-app:${{ github.ref_name }}-linux-amd64 |
| 50 | + docker manifest push flarexio/wallet-app:${{ github.ref_name }} |
| 51 | +
|
| 52 | + - name: Create and Push Backend Manifest |
| 53 | + run: | |
| 54 | + docker manifest create flarexio/wallet:${{ github.ref_name }} \ |
| 55 | + flarexio/wallet:${{ github.ref_name }}-linux-amd64 |
| 56 | + docker manifest push flarexio/wallet:${{ github.ref_name }} |
0 commit comments