Skip to content

Commit

Permalink
feat: Update elixir.yml
Browse files Browse the repository at this point in the history
deffo ben simms
  • Loading branch information
mavi0 authored Oct 8, 2023
1 parent 072f103 commit 9b7dec9
Showing 1 changed file with 47 additions and 1 deletion.
48 changes: 47 additions & 1 deletion .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Elixir CI
name: WebUI CI

on:
push:
Expand Down Expand Up @@ -41,3 +41,49 @@ jobs:
ADMIN_PASS: admin
API_TOKEN: api_admin
SECRET_KEY_BASE: DDyMkkTIcIMVgub9/HtLUyJ/tkJM+4Ls0K/yAO22GFmLTHnStvlDwhv/b+hhOkas

docker-release:
name: Docker Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Version
run: echo "version=$(grep 'version:' web/mix.exs | cut -d '"' -f2)" >> "$GITHUB_OUTPUT"
- name: Setup QEMU
uses: docker/setup-qemu-action@v2
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Container Metadata
id: metadata
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/${{ github.repository_owner }}/infolab-lights
flavor: |
latest=false
prefix=
suffix=
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=${{ steps.Version.outputs.version }}
- name: Build and Push Container
uses: docker/build-push-action@v4
with:
context: web
file: web/Dockerfile
build-arg: |
APP_VSN=${{ steps.Version.outputs.version }}
push: true
platforms: linux/amd64
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 9b7dec9

Please sign in to comment.