-
-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (46 loc) · 1.45 KB
/
docker.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
name: docker
on:
push:
branches:
- main
permissions: read-all
jobs:
docker:
runs-on: ubuntu-latest
env:
DOCKER_USERNAME: iloveitaly
steps:
- uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ github.event.repository.name }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
# amd64 supports x86_64
platforms: linux/arm64,linux/amd64
tags: ${{ github.event.repository.full_name }}:latest
labels: ${{ steps.meta.outputs.labels }}
- name: Update repo description
uses: peter-evans/[email protected]
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
short-description: ${{ github.event.repository.description }}
- name: Sync Repository Metadata
# uses: kbrashears5/[email protected]
uses: iloveitaly/github-action-repo-sync@python
with:
TOKEN: ${{ secrets.GH_PERSONAL_TOKEN }}