notification test
All checks were successful
Docker Build / publish (push) Successful in 6s

This commit is contained in:
Lea 2024-01-24 13:57:51 +01:00
parent 4888f8178b
commit 7d372aa9e9
Signed by: Lea
GPG key ID: 1BAFFE8347019C42

View file

@ -9,52 +9,55 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
publish_api: publish:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install Docker - name: Send build completion notification
run: |- run: curl -u "forgejo:${{ secrets.NTFY_PASSWORD }}" -d "Finished building maddy-admin" https://ntfy.lea.pet/forgejo
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" > /etc/apt/sources.list.d/docker.list
apt-get -qq update
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -qq -y docker-ce-cli docker-buildx-plugin docker-compose-plugin
- name: Docker meta # - name: Install Docker
id: meta # run: |-
uses: actions/docker-metadata-action@v4 # install -m 0755 -d /etc/apt/keyrings
with: # curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
# list of Docker images to use as base name for tags # chmod a+r /etc/apt/keyrings/docker.gpg
images: git.amogus.cloud/lea/maddy-admin # echo \
# generate Docker tags based on branch and short commit SHA # "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
tags: | # "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" > /etc/apt/sources.list.d/docker.list
type=ref,event=branch # apt-get -qq update
type=sha # DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -qq -y docker-ce-cli docker-buildx-plugin docker-compose-plugin
#
- name: Set up QEMU # - name: Docker meta
uses: actions/docker-setup-qemu-action@v2 # id: meta
# uses: actions/docker-metadata-action@v4
- name: Set up Docker Buildx # with:
uses: actions/docker-setup-buildx-action@v2 # # list of Docker images to use as base name for tags
# images: git.amogus.cloud/lea/maddy-admin
- name: Login to registry # # generate Docker tags based on branch and short commit SHA
uses: actions/docker-login-action@v2 # tags: |
with: # type=ref,event=branch
registry: git.amogus.cloud # type=sha
username: lea #
password: ${{ secrets.FORGEJO_TOKEN }} # - name: Set up QEMU
# uses: actions/docker-setup-qemu-action@v2
- name: Build and push #
uses: actions/docker-build-push-action@v5 # - name: Set up Docker Buildx
with: # uses: actions/docker-setup-buildx-action@v2
context: . #
platforms: linux/amd64,linux/arm64 # - name: Login to registry
push: ${{ github.event_name != 'pull_request' }} # uses: actions/docker-login-action@v2
tags: ${{ steps.meta.outputs.tags }} # with:
labels: ${{ steps.meta.outputs.labels }} # registry: git.amogus.cloud
# username: lea
# password: ${{ secrets.FORGEJO_TOKEN }}
#
# - name: Build and push
# uses: actions/docker-build-push-action@v5
# with:
# context: .
# platforms: linux/amd64,linux/arm64
# push: ${{ github.event_name != 'pull_request' }}
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}