Skip to content

Commit

Permalink
Github Action for Alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
ngaro committed Aug 8, 2024
1 parent 30f4860 commit a3a7115
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/alpine-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build and Push Alpine Image

on:
push:
branches:
- main
paths:
- Dockerfile.alpine
- .github/workflows/alpine-push.yml
workflow_dispatch:

env:

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
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@v6
with:
file: Dockerfile.alpine
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: garo/openssh-client:alpine,garo/openssh-client:latest
-
name: Update repo description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: garo/openssh-client
short-description: Base images from different distros with an OpenSSH __CLIENT__ added.

0 comments on commit a3a7115

Please sign in to comment.