push images to github
This commit is contained in:
parent
9354bf33bd
commit
67797c04b0
1 changed files with 7 additions and 5 deletions
12
.github/workflows/docker-images.yml
vendored
12
.github/workflows/docker-images.yml
vendored
|
|
@ -6,6 +6,8 @@ on:
|
|||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
steps:
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
|
@ -32,11 +34,11 @@ jobs:
|
|||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
|
||||
- name: login to docker hub
|
||||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||
- name: Login to docker hub
|
||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||
|
||||
- name: build the image
|
||||
- name: Build the image
|
||||
run: |
|
||||
docker buildx build --push \
|
||||
--tag edenhaus/bumper:${{ steps.tag_name.outputs.tag }} \
|
||||
--platform linux/amd64,linux/arm/v7,linux/arm64 .
|
||||
--tag ghcr.io/edenhaus/bumper:${{ steps.tag_name.outputs.tag }} \
|
||||
--platform linux/amd64,linux/arm/v7,linux/arm64 .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue