Skip to content

Commit

Permalink
Use simplified docker-build workflow for TF
Browse files Browse the repository at this point in the history
  • Loading branch information
backjonas committed Feb 2, 2025
1 parent ff052bf commit d0b95b5
Showing 1 changed file with 8 additions and 38 deletions.
46 changes: 8 additions & 38 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ name: Build & deploy

env:
# Change this to upload the built image to your own organization.
docker_tag: "ghcr.io/tietokilta/ilmomasiina"
docker_tag: "ghcr.io/teknologforeningen/ilmomasiina"

# Change these to customize your build.
branding_header_title_text: "Tietokillan ilmomasiina"
branding_header_title_text_short: "Ilmomasiina"
branding_footer_gdpr_text: "Tietosuoja"
branding_footer_gdpr_link: "https://tietokilta.fi/fi/kilta/ilmorekisteri"
branding_footer_home_text: "Tietokilta.fi"
branding_footer_home_link: "https://tietokilta.fi"
branding_login_placeholder_email: "admin@tietokilta.fi"
branding_header_title_text: "TF evenemang"
branding_header_title_text_short: "Evenemang"
branding_footer_gdpr_text: "Dataskydd"
branding_footer_gdpr_link: "https://tf.fi"
branding_footer_home_text: "Tf.fi"
branding_footer_home_link: "https://tf.fi"
branding_login_placeholder_email: "dator@tf.fi"

on:
push:
Expand Down Expand Up @@ -53,8 +53,6 @@ jobs:
permissions:
packages: write
contents: read
# Change this to your repo name to build automatically on your fork.
if: github.repository == 'Tietokilta/ilmomasiina'
steps:
- name: Check out the repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -106,31 +104,3 @@ jobs:
outputs:
tag: ${{ steps.meta.outputs.version }}

# This is disabled on forks, you'll most likely need to modify it anyway for your usage
deploy:
name: Push update to App Service
needs: docker
if: github.ref_type == 'tag' && github.repository == 'Tietokilta/ilmomasiina'
runs-on: ubuntu-latest
environment: production
steps:
- name: Login via Azure CLI
uses: azure/#@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- uses: azure/webapps-deploy@v3
with:
app-name: tik-ilmo-prod-app
images: "${{ env.docker_tag }}:${{ needs.docker.outputs.tag }}"

# This is disabled on forks since you probably don't need to upload your own packages
npm:
name: Publish JS packages
needs: [lint, packagejson]
permissions:
packages: write
contents: read
if: github.ref_type == 'tag' && github.repository == 'Tietokilta/ilmomasiina'
uses: ./.github/workflows/npm-build.yml
secrets: inherit

0 comments on commit d0b95b5

Please # to comment.