Skip to content

Commit

Permalink
Adding workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-wg committed Nov 6, 2024
1 parent c25c35f commit a12ade1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Docker Image CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###################
### BUILD STAGE ###
###################
FROM rust:1.53 as build
FROM rust:1.82 as build
WORKDIR /usr/src/

# Install build-target for static linking
Expand All @@ -18,7 +18,6 @@ COPY src ./src

# Compile the final binary
RUN cargo build --release --target x86_64-unknown-linux-musl
RUN strip target/x86_64-unknown-linux-musl/release/digit2021

########################
### PRODUCTION STAGE ###
Expand Down

0 comments on commit a12ade1

Please sign in to comment.