Skip to content

Commit

Permalink
add action on s6
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-viber committed Mar 13, 2024
1 parent 8667a08 commit 17360ae
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: docker-build

on:
push:
branches:
- "s6"
- "master"

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Extract Branch Name
shell: bash
run: |
branchName=${GITHUB_REF#refs/heads/}
if [ $branchName = 'master' ]; then TagName='latest'; else TagName=$branchName; fi
echo "TagName=$(echo $TagName)" >> $GITHUB_OUTPUT
id: extract_branch
- 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:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: andrey0001/unbound-tls:${{ steps.extract_branch.outputs.TagName }}

0 comments on commit 17360ae

Please sign in to comment.