This commit is contained in:
parent
d8d375fa40
commit
9683fef0ae
52
.gitea/workflows/release.yaml
Normal file
52
.gitea/workflows/release.yaml
Normal file
@ -0,0 +1,52 @@
|
||||
name: release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: gitea/runner-images:ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker BuildX
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
buildkitd-flags: --debug
|
||||
|
||||
- name: Get Meta
|
||||
id: meta
|
||||
run: |
|
||||
echo IMAGE_CREATED=$(date -u +'%Y-%m-%dT%H:%M:%SZ') | tee -a $GITHUB_OUTPUT
|
||||
echo IMAGE_VERSION=$(date -u +'v%y.%m.%d') | tee -a $GITHUB_OUTPUT
|
||||
echo IMAGE_REVISION=$(git rev-parse HEAD) | tee -a $GITHUB_OUTPUT
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Build and push default 22.04
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile
|
||||
platforms: linux/arm64
|
||||
pull: true
|
||||
push: true
|
||||
no-cache: true
|
||||
build-args: |
|
||||
BASE_IMAGE_TAG=ubuntu-22.04
|
||||
IMAGE_VERSION=${{ steps.meta.outputs.IMAGE_VERSION }}
|
||||
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
||||
IMAGE_REVISION=${{ steps.meta.outputs.IMAGE_REVISION }}
|
||||
tags: |
|
||||
seeseemelk/runner-images:ubuntu-22.04
|
||||
seeseemelk/runner-images:ubuntu-22.04-${{ steps.meta.outputs.IMAGE_VERSION }}
|
||||
seeseemelk/runner-images:ubuntu-latest
|
Loading…
x
Reference in New Issue
Block a user