Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
},
"dockerComposeFile": "compose.yml",
"features": {
"ghcr.io/devcontainers-contrib/features/k6:1": {},
"ghcr.io/devcontainers-contrib/features/zsh-plugins:0": {},
"ghcr.io/devcontainers-extra/features/k6:1": {},
"ghcr.io/devcontainers-extra/features/zsh-plugins:0": {},
"ghcr.io/devcontainers/features/github-cli:1": {}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
Expand Down
24 changes: 15 additions & 9 deletions .github/workflows/call-docker-build.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# template source: https://github.com/conradwt/docker-build-workflow/blob/main/templates/call-docker-build.yaml
# template source: https://github.com/bretfisher/docker-build-workflow/blob/main/templates/call-docker-build.yaml
name: Docker Build

on:
Expand All @@ -21,12 +21,16 @@ concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

# reset permsissions to none at the workflow level
# we'll set them at the job level below
permissions: {}

jobs:
call-docker-build:
name: Call Docker Build

# FIXME: fork this repo and update this path to YOUR reusable workflow location
uses: conradwt/docker-build-workflow/.github/workflows/reusable-docker-build.yaml@main
uses: conradwt/docker-build-workflow/.github/workflows/reusable-docker-build-native.yaml@main

# set permissions here to be equal or greater than what's required in the Reusable Workflow
# Permisions set here for the GITHUB_TOKEN are then passed to the Reusable Workflow
Expand All @@ -38,15 +42,16 @@ jobs:
pull-requests: write # needed to create and update comments in PRs

# secrets:
# # Only needed if with:dockerhub-enable is true below
# # https://hub.docker.com/settings/security
# dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
# dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}

# Only needed if with:dockerhub-enable is true below
# https://hub.docker.com/settings/security
# dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
# dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}

with:
# NOTE: there are lots of input options for this reusable workflow
# read the comments in the inputs area of the reusable workflow for more info
# https://github.com/conradwt/docker-build-workflow/blob/main/.github/workflows/reusable-docker-build.yaml
# https://github.com/BretFisher/docker-build-workflow/blob/main/.github/workflows/reusable-docker-build.yaml

# Here are just a few of the common defaults

Expand All @@ -67,7 +72,8 @@ jobs:

# target:

# platforms: linux/amd64
platforms: linux/amd64,linux/arm64
# platforms are *native GitHub Runners by default, so only amd64 and/or arm64 are supported, and must be in JSON syntax.
# for more platform build options, there's a "QEMU" reusable workflow option in this repo's .github/workflows folder
platforms: '["linux/amd64", "linux/arm64"]'

# comment-enable: true
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
elixir 1.18.4-otp-28
erlang 28.0.2
elixir 1.19.2-otp-28
erlang 28.1.1
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
# - https://pkgs.org/ - resource for finding needed packages
# - Ex: hexpm/elixir:1.14.2-erlang-25.1.2-debian-bullseye-20221004-slim
#
ARG ELIXIR_VERSION=1.18.4
ARG OTP_VERSION=28.0.2
ARG DEBIAN_VERSION=bullseye-20250811-slim
ARG ELIXIR_VERSION=1.19.2
ARG OTP_VERSION=28.1.1
ARG DEBIAN_VERSION=bullseye-20251103-slim

ARG BUILDER_IMAGE="hexpm/elixir:${ELIXIR_VERSION}-erlang-${OTP_VERSION}-debian-${DEBIAN_VERSION}"
ARG RUNNER_IMAGE="debian:${DEBIAN_VERSION}"
Expand All @@ -26,13 +26,13 @@

# labels from https://github.com/opencontainers/image-spec/blob/master/annotations.md
LABEL org.opencontainers.image.authors=conradwt@gmail.com
LABEL org.opencontainers.image.created=$CREATED_DATE

Check warning on line 29 in Dockerfile

View workflow job for this annotation

GitHub Actions / Call Docker Build / Build+Push (linux/amd64)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$CREATED_DATE' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
LABEL org.opencontainers.image.revision=$SOURCE_COMMIT

Check warning on line 30 in Dockerfile

View workflow job for this annotation

GitHub Actions / Call Docker Build / Build+Push (linux/amd64)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$SOURCE_COMMIT' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
LABEL org.opencontainers.image.title="Worker Elixir"
LABEL org.opencontainers.image.url=https://hub.docker.com/u/conradwt/worker-elixir
LABEL org.opencontainers.image.source=https://github.com/conradwt/worker-elixir
LABEL org.opencontainers.image.licenses=MIT
LABEL com.conradtaylor.elixir_version=$ELIXIR_VERSION

Check warning on line 35 in Dockerfile

View workflow job for this annotation

GitHub Actions / Call Docker Build / Build+Push (linux/amd64)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$ELIXIR_VERSION' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

# install build dependencies
RUN apt-get update -y && apt-get install -y build-essential git \
Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defmodule Worker.MixProject do
[
app: :worker,
version: "0.1.0",
elixir: "~> 1.18.4",
elixir: "~> 1.19.2",
start_permanent: Mix.env() == :prod,
deps: deps()
]
Expand All @@ -24,7 +24,7 @@ defmodule Worker.MixProject do
[
{:redix, "~> 1.3.0"},
{:req, "~> 0.5.15"},
{:credo, "~> 1.7.12", only: [:dev, :test], runtime: false}
{:credo, "~> 1.7.13", only: [:dev, :test], runtime: false}
]
end
end
4 changes: 2 additions & 2 deletions mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"bunt": {:hex, :bunt, "1.0.0", "081c2c665f086849e6d57900292b3a161727ab40431219529f13c4ddcf3e7a44", [:mix], [], "hexpm", "dc5f86aa08a5f6fa6b8096f0735c4e76d54ae5c9fa2c143e5a1fc7c1cd9bb6b5"},
"castore": {:hex, :castore, "1.0.8", "dedcf20ea746694647f883590b82d9e96014057aff1d44d03ec90f36a5c0dc6e", [:mix], [], "hexpm", "0b2b66d2ee742cb1d9cb8c8be3b43c3a70ee8651f37b75a8b982e036752983f1"},
"certifi": {:hex, :certifi, "2.9.0", "6f2a475689dd47f19fb74334859d460a2dc4e3252a3324bd2111b8f0429e7e21", [:rebar3], [], "hexpm", "266da46bdb06d6c6d35fde799bcb28d36d985d424ad7c08b5bb48f5b5cdd4641"},
"credo": {:hex, :credo, "1.7.12", "9e3c20463de4b5f3f23721527fcaf16722ec815e70ff6c60b86412c695d426c1", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "8493d45c656c5427d9c729235b99d498bd133421f3e0a683e5c1b561471291e5"},
"file_system": {:hex, :file_system, "1.1.0", "08d232062284546c6c34426997dd7ef6ec9f8bbd090eb91780283c9016840e8f", [:mix], [], "hexpm", "bfcf81244f416871f2a2e15c1b515287faa5db9c6bcf290222206d120b3d43f6"},
"credo": {:hex, :credo, "1.7.13", "126a0697df6b7b71cd18c81bc92335297839a806b6f62b61d417500d1070ff4e", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "47641e6d2bbff1e241e87695b29f617f1a8f912adea34296fb10ecc3d7e9e84f"},
"file_system": {:hex, :file_system, "1.1.1", "31864f4685b0148f25bd3fbef2b1228457c0c89024ad67f7a81a3ffbc0bbad3a", [:mix], [], "hexpm", "7a15ff97dfe526aeefb090a7a9d3d03aa907e100e262a0f8f7746b78f8f87a5d"},
"finch": {:hex, :finch, "0.20.0", "5330aefb6b010f424dcbbc4615d914e9e3deae40095e73ab0c1bb0968933cadf", [:mix], [{:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mint, "~> 1.6.2 or ~> 1.7", [hex: :mint, repo: "hexpm", optional: false]}, {:nimble_options, "~> 0.4 or ~> 1.0", [hex: :nimble_options, repo: "hexpm", optional: false]}, {:nimble_pool, "~> 1.1", [hex: :nimble_pool, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "2658131a74d051aabfcba936093c903b8e89da9a1b63e430bee62045fa9b2ee2"},
"hackney": {:hex, :hackney, "1.18.1", "f48bf88f521f2a229fc7bae88cf4f85adc9cd9bcf23b5dc8eb6a1788c662c4f6", [:rebar3], [{:certifi, "~> 2.9.0", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "~> 6.1.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "~> 1.0.0", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "~> 1.1", [hex: :mimerl, repo: "hexpm", optional: false]}, {:parse_trans, "3.3.1", [hex: :parse_trans, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "~> 1.1.0", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}, {:unicode_util_compat, "~> 0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "a4ecdaff44297e9b5894ae499e9a070ea1888c84afdd1fd9b7b2bc384950128e"},
"hpax": {:hex, :hpax, "1.0.3", "ed67ef51ad4df91e75cc6a1494f851850c0bd98ebc0be6e81b026e765ee535aa", [:mix], [], "hexpm", "8eab6e1cfa8d5918c2ce4ba43588e894af35dbd8e91e6e55c817bca5847df34a"},
Expand Down
Loading