Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BaukeZwart committed Jun 5, 2023
1 parent 5f9af42 commit e1d6016
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,59 +3,59 @@ name: ci
on:
push:
branches:
- '**'
- '*'
tags:
- 'v*'
pull_request:
branches:
- 'master'


permissions:
packages: write
contents: read

jobs:
docker:
environment: Docker Hub
build:
runs-on: ubuntu-latest

steps:
-
-
name: Checkout repository
uses: actions/checkout@v3

-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/${{ github.repository_owner }}/cross-seed
${{ secrets.DOCKERHUB_USERNAME }}/cross-seed
tags: |
type=semver,pattern=version-{{version}}
type=ref,event=branch
type=ref,event=pr
-
-
name: Set up QEMU dependency
uses: docker/setup-qemu-action@v1
-

-
name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
-

-
name: Login to GHCR
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
password: ${{ secrets.GHCR_PASSWORD }}

-
name: Build and push Docker image
uses: docker/build-push-action@v4
with:
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit e1d6016

Please sign in to comment.