diff options
author | 2021-12-23 18:59:08 +0100 | |
---|---|---|
committer | 2021-12-23 18:59:08 +0100 | |
commit | 4892cf3c9d2182bcaa0586c00104aa57596d0e1a (patch) | |
tree | d34e8379f8e547148e2287eb903d40b9a554f1ec /.github/workflows/build-and-publish.yml | |
parent | Merge pull request #90 from getferdi/all-contributors/add-k0staa (diff) | |
download | ferdium-server-4892cf3c9d2182bcaa0586c00104aa57596d0e1a.tar.gz ferdium-server-4892cf3c9d2182bcaa0586c00104aa57596d0e1a.tar.zst ferdium-server-4892cf3c9d2182bcaa0586c00104aa57596d0e1a.zip |
Use same workflow name as getferdi/ferdi
Diffstat (limited to '.github/workflows/build-and-publish.yml')
-rw-r--r-- | .github/workflows/build-and-publish.yml | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml deleted file mode 100644 index 63cc5d5..0000000 --- a/.github/workflows/build-and-publish.yml +++ /dev/null | |||
@@ -1,64 +0,0 @@ | |||
1 | name: Build and Publish Docker Image | ||
2 | |||
3 | on: | ||
4 | push: | ||
5 | tags: | ||
6 | - 'v*.*.*' | ||
7 | release: | ||
8 | types: [published] | ||
9 | workflow_dispatch: | ||
10 | |||
11 | jobs: | ||
12 | image-build: | ||
13 | runs-on: ubuntu-latest | ||
14 | steps: | ||
15 | - name: Checkout | ||
16 | uses: actions/checkout@v2 | ||
17 | |||
18 | - name: Docker meta | ||
19 | id: meta | ||
20 | uses: docker/metadata-action@v3 | ||
21 | with: | ||
22 | images: | | ||
23 | getferdi/ferdi-server | ||
24 | # ghcr.io/getferdi/ferdi-server | ||
25 | tags: | | ||
26 | type=ref,event=branch | ||
27 | type=ref,event=pr | ||
28 | type=semver,pattern={{version}} | ||
29 | type=semver,pattern={{major}}.{{minor}} | ||
30 | type=semver,pattern={{major}} | ||
31 | labels: org.opencontainers.image.title=Ferdi-server | ||
32 | |||
33 | - name: Set up QEMU | ||
34 | uses: docker/setup-qemu-action@v1 | ||
35 | |||
36 | - name: Set up Docker Buildx | ||
37 | uses: docker/setup-buildx-action@v1 | ||
38 | |||
39 | - name: Login to DockerHub | ||
40 | uses: docker/login-action@v1 | ||
41 | with: | ||
42 | username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
43 | password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
44 | |||
45 | - name: Login to GitHub Container Registry | ||
46 | uses: docker/login-action@v1 | ||
47 | with: | ||
48 | registry: ghcr.io | ||
49 | username: FerdiBot | ||
50 | password: ${{ secrets.GH_TOKEN }} | ||
51 | |||
52 | - name: Build and push | ||
53 | id: docker_build | ||
54 | uses: docker/build-push-action@v2 | ||
55 | with: | ||
56 | context: . | ||
57 | file: ./Dockerfile | ||
58 | platforms: linux/amd64,linux/arm64 | ||
59 | push: true | ||
60 | tags: ${{ steps.meta.outputs.tags }}, getferdi/ferdi-server:latest | ||
61 | labels: ${{ steps.meta.outputs.labels }} | ||
62 | |||
63 | - name: Image digest | ||
64 | run: echo ${{ steps.docker_build.outputs.digest }} | ||