Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
meanmail committed Sep 18, 2024
2 parents 8c59347 + 0cca244 commit 0abe1d5
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .github/workflows/build_base_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build Base Image

on:
workflow_dispatch:
inputs:
image_tag:
type: string
description: 'Image tag'
required: true
default: 'py3.8.11-java11.0.11-node14.17.3-go1.18.5'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
build_base_image:
name: Build Base Image
runs-on: [ self-hosted, small ]
steps:
- uses: actions/checkout@v4

- uses: docker/login-action@v3
with:
registry: hyperskill.azurecr.io
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}

- uses: docker/setup-buildx-action@v3

- name: Build and push server image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
context: .
pull: true
push: true
tags: hyperskill.azurecr.io/hyperstyle-base:${{ inputs.image_tag }}
cache-from: |
type=gha
type=gha,scope=main
cache-to: type=gha,mode=max
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM stepik/hyperstyle-base:py3.8.11-java11.0.11-node14.17.3-go1.18.5
FROM hyperskill.azurecr.io/hyperstyle-base:py3.8.11-java11.0.11-node14.17.3-go1.18.5

ENV ESLINT_VERSION 7.5.0

Expand Down

0 comments on commit 0abe1d5

Please sign in to comment.