Move to Gitea Actions.
All checks were successful
build image / build image (push) Successful in 31s
All checks were successful
build image / build image (push) Successful in 31s
This commit is contained in:
parent
6f41bab734
commit
084388d3b8
33
.gitea/workflows/build-image.yml
Normal file
33
.gitea/workflows/build-image.yml
Normal file
@ -0,0 +1,33 @@
|
||||
name: build image
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build image:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- name: code checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: docker login
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: registry.digitalocean.com
|
||||
username: ${{ secrets.DOCKER_REGISTRY_CREDS }}
|
||||
password: ${{ secrets.DOCKER_REGISTRY_CREDS }}
|
||||
- name: create tag
|
||||
id: create-tag
|
||||
run: |
|
||||
tag=$(echo ${{ github.sha }} | cut -b 1-8)
|
||||
echo "::set-output name=tag::$tag"
|
||||
- name: build and push
|
||||
uses: docker/build-push-action@master
|
||||
with:
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
tags: |
|
||||
registry.digitalocean.com/ssdocker/${{ github.repository }}:${{ steps.create-tag.outputs.tag }}
|
||||
registry.digitalocean.com/ssdocker/${{ github.repository }}:latest
|
@ -1,15 +0,0 @@
|
||||
pipeline:
|
||||
publish:
|
||||
when:
|
||||
event: push
|
||||
branch: main
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
pull_image: false
|
||||
dockerfile: Dockerfile
|
||||
tags:
|
||||
- ${CI_COMMIT:0:8}
|
||||
repo:
|
||||
from_secret: docker_repo
|
||||
config:
|
||||
from_secret: docker_config
|
Loading…
Reference in New Issue
Block a user