Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
98aa6828a5 | ||
![]() |
f4b46bdb2a |
36
.drone.yml
36
.drone.yml
@ -1,36 +0,0 @@
|
|||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
name: tags
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: docker
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
repo: eumau/postgres
|
|
||||||
username:
|
|
||||||
from_secret: dockerhub_username
|
|
||||||
password:
|
|
||||||
from_secret: dockerhub_password
|
|
||||||
tags:
|
|
||||||
- ${DRONE_TAG}
|
|
||||||
build_args:
|
|
||||||
- PG_TAG=${DRONE_TAG}
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
# ---
|
|
||||||
# kind: pipeline
|
|
||||||
# name: default
|
|
||||||
|
|
||||||
# steps:
|
|
||||||
# - name: docker
|
|
||||||
# image: plugins/docker
|
|
||||||
# settings:
|
|
||||||
# repo: eumau/postgres
|
|
||||||
# auto_tag: true
|
|
||||||
# username:
|
|
||||||
# from_secret: dockerhub_username
|
|
||||||
# password:
|
|
||||||
# from_secret: dockerhub_password
|
|
41
.gitea/workflows/build.yml
Normal file
41
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
name: Build Docker images
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: true
|
||||||
|
matrix:
|
||||||
|
repo:
|
||||||
|
- eumau/postgres
|
||||||
|
tag:
|
||||||
|
- "13"
|
||||||
|
- latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
-
|
||||||
|
name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Build and push image
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
tags: ${{ matrix.repo }}:${{ matrix.tag }}
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
build-args: |
|
||||||
|
PG_TAG=${{ matrix.tag }}
|
Loading…
x
Reference in New Issue
Block a user