Skip to content

add NO_UPDATE env variable #109

add NO_UPDATE env variable

add NO_UPDATE env variable #109

Workflow file for this run

name: Docker Image CI
on: [push]
jobs:
build-amd64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/[email protected]
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2
- name: Set push parameter
id: setPushParameter
run: |
if [[ ${{ github.ref }} == 'refs/heads/master' ]]; then
echo "TAG=latest" >> $GITHUB_ENV
else
echo "TAG=dev" >> $GITHUB_ENV
fi
- name: Build and push
env:
PUSH: true
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
push: true
tags: |
${{ secrets.DOCKER_HUB_USERNAME }}/ddsb:${{ env.TAG }}
build-arm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/[email protected]
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2
- name: Set push parameter
id: setPushParameter
run: |
if [[ ${{ github.ref }} == 'refs/heads/master' ]]; then
echo "TAG=latest-arm" >> $GITHUB_ENV
else
echo "TAG=dev-arm" >> $GITHUB_ENV
fi
- name: Build and push
env:
PUSH: true
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
platforms: linux/arm64/v8
push: true
tags: |
${{ secrets.DOCKER_HUB_USERNAME }}/ddsb:${{ env.TAG }}