-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.14 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
name: build multi-arch series-scraper image
on:
push:
branches: main
permissions:
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: download Dockerfile
run: curl -O https://raw.githubusercontent.com/speedyconzales/series-scraper/master/Dockerfile
- 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: 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