Skip to content

Commit

Permalink
Merge pull request #3 from ducktors/update-alpine-on-dockerfile
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
matteovivona committed Jun 3, 2024
2 parents a550e3e + fcc4828 commit 5625a52
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build

on:
pull_request:

jobs:
build:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to Docker Hub
uses: docker/login-action@v2.1.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4.4.0
with:
images: ducktors/docker-wait-for-dependencies

- name: Build and push Docker image
uses: docker/build-push-action@v4.0.0
with:
context: .
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/x86_64,linux/arm64
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.18
FROM alpine:3.20

RUN apk add --no-cache bash
ADD entrypoint.sh /usr/local/bin/entrypoint.sh
Expand Down

0 comments on commit 5625a52

Please sign in to comment.