Skip to content

Letsencrypt Docker Image (Build and Push) #1

Letsencrypt Docker Image (Build and Push)

Letsencrypt Docker Image (Build and Push) #1

Workflow file for this run

name: Letsencrypt Docker Image (Build and Push)
on:
push:
branches: [ "master" ]
paths:
- "docker/letsencrypt/**"
pull_request:
branches: [ "master" ]
paths:
- "docker/letsencrypt/**"
release:
types: [published]
tags:
- letsencrypt_*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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
uses: docker/build-push-action@v5
with:
file: ./docker/letsencrypt/Dockerfile
context: "./docker/letsencrypt/"
push: ${{github.event_name == 'push'}}
tags: giohappy/letsencrypt:${{ github.ref }}