Compare commits
@@ -0,0 +1,41 @@
|
|||||||
|
name: Publish Docker image
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
push_to_registry:
|
||||||
|
name: Build and Push Docker image
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check out the repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Log in to the Container registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.stws.cc
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
|
- name: Extract metadata (tags, labels)
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: git.stws.cc/${{ github.repository }}
|
||||||
|
tags: |
|
||||||
|
type=ref,event=tag
|
||||||
|
type=raw,value=latest
|
||||||
|
|
||||||
|
- name: Build and push Docker images
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
stages:
|
|
||||||
- Build
|
|
||||||
|
|
||||||
"Build Docker":
|
|
||||||
stage: Build
|
|
||||||
image: docker:24.0.5
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin
|
|
||||||
script:
|
|
||||||
- echo "Building Docker-image..."
|
|
||||||
|
|
||||||
- >
|
|
||||||
docker build
|
|
||||||
--label "org.opencontainers.image.url=$CI_PROJECT_URL"
|
|
||||||
--label "org.opencontainers.image.source=$CI_PROJECT_URL"
|
|
||||||
-t $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
|
|
||||||
-t $CI_REGISTRY_IMAGE:latest .
|
|
||||||
|
|
||||||
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
|
|
||||||
- docker push $CI_REGISTRY_IMAGE:latest
|
|
||||||
|
|
||||||
rules:
|
|
||||||
- if: $CI_COMMIT_TAG
|
|
||||||
@@ -38,7 +38,7 @@ export default function HomeClientContent() {
|
|||||||
<div className="flex flex-col gap-2.5 mt-10">
|
<div className="flex flex-col gap-2.5 mt-10">
|
||||||
<HeroButton onClick={() => setActiveModal('member')}>Bli Medlem</HeroButton>
|
<HeroButton onClick={() => setActiveModal('member')}>Bli Medlem</HeroButton>
|
||||||
<HeroButton href="#traningstider">Träningstider</HeroButton>
|
<HeroButton href="#traningstider">Träningstider</HeroButton>
|
||||||
<HeroButton href="https://www.basesport.se/category/lerbergets-vbk">Klubbkollektion</HeroButton>
|
<HeroButton href="https://www.basesport.se/category/lerbergets-vbs">Klubbkollektion</HeroButton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="hidden md:flex md:relative w-64 md:w-75 player-animation">
|
<div className="hidden md:flex md:relative w-64 md:w-75 player-animation">
|
||||||
|
|||||||
Reference in New Issue
Block a user