Skip to content

Bump alpine from 3.20.0 to 3.20.1 #21

Bump alpine from 3.20.0 to 3.20.1

Bump alpine from 3.20.0 to 3.20.1 #21

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: benjlevesque/[email protected]
id: short-sha
with:
length: 6
- run: echo $SHA
env:
SHA: ${{ steps.short-sha.outputs.sha }}
- run: echo $SHA
env:
SHA: ${{ env.SHA }}
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:${{ steps.short-sha.outputs.sha }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push with commit number
uses: docker/build-push-action@v5
with:
push: true
tags: leto1210/docker-dnsmasq:${{ steps.short-sha.outputs.sha }}
- name: Build and push with latest tag
uses: docker/build-push-action@v5
with:
push: true
tags: leto1210/docker-dnsmasq:latest