Skip to content

remove: deno/Dockerfile.alpine #7

remove: deno/Dockerfile.alpine

remove: deno/Dockerfile.alpine #7

Workflow file for this run

name: Build and Push Deno Images
on:
push:
branches-ignore:
- none
paths:
- "deno/**"
workflow_dispatch:
jobs:
build:
runs-on: self-hosted
timeout-minutes: 180
strategy:
fail-fast: false
matrix:
config:
- { dockerfile: "deno/Dockerfile", context: "deno", image_name: "deno", tag_name: "latest" }
- { dockerfile: "deno/Dockerfile.ubuntu", context: "deno", image_name: "deno", tag_name: "ubuntu" }
- { dockerfile: "deno/Dockerfile.ubuntu_dev", context: "deno", image_name: "deno", tag_name: "ubuntu_dev" }
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set tag name based on branch
id: set_tag
run: |
if [[ "${{ github.ref_name }}" == "master" ]]; then
echo "tag=${{ matrix.config.tag_name }}" >> $GITHUB_OUTPUT
else
GITHUB_REFNAME=${{ github.ref_name }}
BRANCH_NAME=${GITHUB_REFNAME//\//_}
echo "tag=${{ matrix.config.tag_name }}-$BRANCH_NAME" >> $GITHUB_OUTPUT
fi
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ${{ matrix.config.context }}
file: ${{ matrix.config.dockerfile }}
platforms: linux/amd64,linux/arm64/v8
push: true
tags: hivesolutions/${{ matrix.config.image_name }}:${{ steps.set_tag.outputs.tag }}