Remove forgejo action
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
0153aa1699
commit
9afb606576
|
@ -1,49 +0,0 @@
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
tags:
|
|
||||||
- v[0-9]*
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build_and_test:
|
|
||||||
runs_on: docker
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: https://code.forgejo.org/actions/checkout@v3
|
|
||||||
- name: Dependenies
|
|
||||||
run: |
|
|
||||||
curl -fsSL https://get.docker.com -o get-docker.sh
|
|
||||||
sh ./get-docker.sh
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: https://github.com/docker/setup-buildx-action@v2.10.0
|
|
||||||
with:
|
|
||||||
endpoint: tcp://192.168.0.5:2375
|
|
||||||
- name: Docker metadata
|
|
||||||
id: meta
|
|
||||||
uses: https://github.com/docker/metadata-action@v4.6.0
|
|
||||||
with:
|
|
||||||
images: code.jhot.me/jhot/docker-s3-backup
|
|
||||||
tags: |
|
|
||||||
type=ref,event=branch
|
|
||||||
type=ref,event=pr
|
|
||||||
type=semver,pattern={{version}}
|
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
|
||||||
- name: Login to DockerHub
|
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
uses: https://github.com/docker/login-action@v2.2.0
|
|
||||||
with:
|
|
||||||
registry: code.jhot.me
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_TOKEN }}
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v4.2.1
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
platforms: linux/amd64,linux/arm64
|
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
|
Loading…
Reference in New Issue