Skip to content

Commit

Permalink
Attempt #4
Browse files Browse the repository at this point in the history
  • Loading branch information
mannkind committed Nov 17, 2021
1 parent b82ad6d commit 5d31625
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/actions/build-docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ runs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build and push docker images (Main)
- name: Build/push to docker.io
shell: bash
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"
run: |
echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin
docker buildx build --push --platform=linux/amd64,linux/arm64,linux/arm/v7 -t "${{ inputs.image }}:${{ inputs.tag }}" .
if [[ "${GITHUB_TOKEN}" != "" ]]; then
GITHUB_USERNAME="${DOCKER_USERNAME}"
echo "${GITHUB_TOKEN}" | docker login ghcr.io -u "${GITHUB_USERNAME}" --password-stdin
docker buildx build --push --platform=linux/amd64,linux/arm64,linux/arm/v7 -t "ghcr.io/${{ inputs.image }}:${{ inputs.tag }}" .
fi
- name: Build/push to ghcr.io
shell: bash
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"
run: |
docker buildx build --push --platform=linux/amd64,linux/arm64,linux/arm/v7 -t "ghcr.io/${{ inputs.image }}:${{ inputs.tag }}" .

0 comments on commit 5d31625

Please sign in to comment.