This commit is contained in:
parent
a5c08cc6ad
commit
be42309eb1
@ -1,44 +1,31 @@
|
|||||||
name: Docker
|
name: ci
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
|
||||||
- cron: '0 6 * * 0'
|
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
|
||||||
tags: [ 'v*.*.*' ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ "main" ]
|
|
||||||
|
|
||||||
env:
|
|
||||||
# Use docker.io or ghcr.io
|
|
||||||
REGISTRY: docker.io
|
|
||||||
RELEASE: latest
|
|
||||||
USER: sthopeless
|
|
||||||
IMAGE: ${{ github.repository }}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
id-token: write
|
|
||||||
packages: write
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
-
|
||||||
|
name: Checkout
|
||||||
- name: Set up Docker Buildx
|
uses: actions/checkout@v4
|
||||||
uses: docker/setup-buildx-action@v3
|
-
|
||||||
|
name: Login to Docker Hub
|
||||||
- name: Log into registry ${{ env.REGISTRY }}
|
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
|
||||||
username: ${{ secrets.DOCKER_USER }}
|
username: ${{ secrets.DOCKER_USER }}
|
||||||
password: ${{ secrets.DOCKER_PASS }}
|
password: ${{ secrets.DOCKER_PASS }}
|
||||||
|
-
|
||||||
- name: Build and push
|
name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
-
|
||||||
|
name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
file: ./Dockerfile
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: sthopeless/gitea-actions-repos-compare:latest
|
tags: sthopeless/gitea-actions-repos-compare:latest
|
Loading…
x
Reference in New Issue
Block a user