Skip to content

Update docker-image.yml #14

Update docker-image.yml

Update docker-image.yml #14

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main", "fixalloc" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PAT }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Set branch
run: echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: otomato/crypter:${{ env.BRANCH }}
platforms: linux/amd64,linux/arm64
build-args: |
BRANCH=${{ env.BRANCH }}