decentralised sync engine
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: docker build and push ci

serenity 1de2e58b 72e204ba

+40
+40
.github/workflows/push-image.yaml
··· 1 + env: 2 + REGISTRY: ghcr.io 3 + IMAGE_NAME: ${{ github.repository }} 4 + 5 + jobs: 6 + build-and-push: 7 + runs-on: ubuntu-latest 8 + permissions: 9 + contents: read 10 + packages: write 11 + 12 + steps: 13 + - name: Checkout repository 14 + uses: actions/checkout@v4 15 + 16 + - name: Log in to GitHub Container Registry 17 + uses: docker/login-action@v3 18 + with: 19 + registry: ${{ env.REGISTRY }} 20 + username: ${{ github.actor }} 21 + password: ${{ secrets.GITHUB_TOKEN }} 22 + 23 + - name: Extract metadata (tags, labels) 24 + id: meta 25 + uses: docker/metadata-action@v5 26 + with: 27 + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} 28 + tags: | 29 + type=semver,pattern={{version}} 30 + type=semver,pattern={{major}}.{{minor}} 31 + type=semver,pattern={{major}} 32 + type=raw,value=latest 33 + 34 + - name: Build and push Docker image 35 + uses: docker/build-push-action@v5 36 + with: 37 + context: . 38 + push: true 39 + tags: ${{ steps.meta.outputs.tags }} 40 + labels: ${{ steps.meta.outputs.labels }}