Skip to content

Commit

Permalink
🏭️ Set up automated builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jpetazzo committed Jun 5, 2024
1 parent 7342d25 commit 042b7e6
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
46 changes: 46 additions & 0 deletions .github/workflows/automated-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Automated Build

on:
push:
branches:
- main

env:
DOCKER_BUILDKIT: 1

jobs:
push:

runs-on: ubuntu-latest
if: github.event_name == 'push'

permissions:
contents: read
packages: write

steps:
-
uses: actions/checkout@v3

-
name: Log into GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}

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

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

-
name: hasher
uses: docker/build-push-action@v5
with:
context: "{{defaultContext}}:hasher"
platforms: linux/amd64 #,linux/arm64,linux/arm/v7
push: true
tags: ghcr.io/jpetazzo/dockercoins/hasher:v0.1
2 changes: 1 addition & 1 deletion hasher/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ruby:alpine
RUN apk add --update build-base curl
RUN gem install sinatra --version `~> 3`
RUN gem install sinatra --version '~> 3'
RUN gem install thin
ADD hasher.rb /
CMD ["ruby", "hasher.rb"]
Expand Down

0 comments on commit 042b7e6

Please sign in to comment.