gitscope
← marzneshin / v0.1.0 / .github/workflows/package.yml
https://dev.kronoz.win/r/marzneshin.git
.github/workflows/package.yml · YAML
Blame Raw
 1name: Package
 2
 3on:
 4  push:
 5    tags:
 6      - 'v*.*.*'
 7
 8jobs:
 9  build-docker-image:
10    runs-on: ubuntu-latest
11    steps:
12      - name: Checkout
13        uses: actions/checkout@v3
14
15      - name: Set up QEMU
16        uses: docker/setup-qemu-action@v2
17
18      - name: Set up Docker Buildx
19        uses: docker/setup-buildx-action@v2
20
21      - name: Login to GitHub Container Registry
22        uses: docker/login-action@v2
23        with:
24          registry: ghcr.io
25          username: ${{ github.repository_owner }}
26          password: ${{ secrets.GITHUB_TOKEN }}
27
28      - name: Build and push
29        uses: docker/build-push-action@v3
30        with:
31          context: .
32          platforms: linux/amd64,linux/arm64
33          push: true
34          tags: |
35            ghcr.io/khodedawsh/marzneshin:latest
36            ghcr.io/khodedawsh/marzneshin:${{github.ref_name}}