-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.16 KB
/
image.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
name: build multi-arch series-scraper image
on:
push:
branches: main
permissions:
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: login to docker hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: login to ghcr
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
- name: checkout repository
uses: actions/checkout@v4
with:
lfs: true
- name: checkout lfs
run: git lfs checkout
- name: install buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
version: latest
- name: build the image
run: |
docker buildx build --push \
--tag docker.io/speedyconzales/series-scraper:latest \
--tag ghcr.io/speedyconzales/series-scraper:latest \
--platform linux/amd64,linux/arm64 .
- name: Setup tmate session
if: failure()
timeout-minutes: 10
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true