Skip to content

Add musl(Alpine) build (#52) #10

Add musl(Alpine) build (#52)

Add musl(Alpine) build (#52) #10

# Build an Alpine Linux image containing curl-impersonate and push to
# Docker hub.
name: Publish Docker image
on:
push:
tags:
- 'v*'
jobs:
push-docker-image:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Extract metadata (tags, labels) for Docker (chrome, alpine)
id: meta_chrome_alpine
uses: docker/metadata-action@v3
with:
images: yifeikong/curl-impersonate
tags: |
type=semver,pattern={{version}},suffix=-chrome-alpine
type=semver,pattern={{version}},suffix=-chrome
type=semver,pattern={{major}}.{{minor}},suffix=-chrome-alpine
type=semver,pattern={{major}}.{{minor}},suffix=-chrome
- name: Build and push the Chrome version of curl-impersonate(alpine)
uses: docker/build-push-action@v2
with:
push: true
context: chrome/
file: chrome/Dockerfile.alpine
tags: ${{ steps.meta_chrome_alpine.outputs.tags }}
labels: ${{ steps.meta_chrome_alpine.outputs.labels }}
- name: Extract metadata (tags, labels) for Docker (chrome, debian)
id: meta_chrome_debian
uses: docker/metadata-action@v3
with:
images: yifeikong/curl-impersonate
tags: |
type=semver,pattern={{version}},suffix=-chrome-slim-bullseye
type=semver,pattern={{major}}.{{minor}},suffix=-chrome-slim-bullseye
- name: Build and push the Chrome version of curl-impersonate(debian)
uses: docker/build-push-action@v2
with:
push: true
context: chrome/
file: chrome/Dockerfile
tags: ${{ steps.meta_chrome_debian.outputs.tags }}
labels: ${{ steps.meta_chrome_debian.outputs.labels }}