-
-
Notifications
You must be signed in to change notification settings - Fork 34
54 lines (46 loc) · 1.57 KB
/
docker-image-vbe.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Docker Image CI - VFE
on:
push:
branches: [verified-bot-edition]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v1.6.0
with:
buildkitd-flags: --debug
- name: Log in to DockerHub Container registry
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Log in to GitHub Container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
eduardozgz/member-counter-bot:latest-verified-bot-edition
eduardozgz/member-counter-bot:${{ steps.package-version.outputs.current-version }}
ghcr.io/member-counter/bot:latest-verified-bot-edition
ghcr.io/member-counter/bot:${{ steps.package-version.outputs.current-version }}