1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-16 20:18:07 +00:00
conky/.github/workflows/docker.yaml

53 lines
1.2 KiB
YAML
Raw Normal View History

name: Docker
on:
push:
2024-05-02 14:22:04 +00:00
branches:
- main
paths-ignore:
- web/**
- doc/**
pull_request:
branches:
- main
2023-03-04 17:11:04 +00:00
paths-ignore:
- web/**
- doc/**
# Publish `v1.2.3` tags as releases.
tags:
- v*
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
docker-buildx:
2024-05-30 13:20:54 +00:00
env:
IMAGE_NAME: conky
DOCKER_BUILDKIT: 1
DOCKERHUB_USERNAME: brndnmtthws
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
2024-05-13 18:13:38 +00:00
- name: Login to Docker Hub
uses: docker/login-action@v3
if: ${{ env.DOCKERHUB_TOKEN != '' }}
2024-05-13 18:13:38 +00:00
with:
2024-06-04 18:13:30 +00:00
username: ${{ env.DOCKERHUB_USERNAME }}
2024-05-13 18:13:38 +00:00
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
env:
RELEASE: "${{ startsWith(github.ref, 'refs/tags/') && 'ON' || 'OFF' }}"
GITHUB_REF: ${{ github.ref }}
run: .github/scripts/docker-build.bash