Skip to content

Commit

Permalink
Docker buildx Action test
Browse files Browse the repository at this point in the history
  • Loading branch information
ejohb committed Nov 5, 2023
1 parent df579cc commit 66db247
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,12 @@ jobs:
steps:
- uses: actions/checkout@v2


- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Buildx test
run: |
docker buildx build . --build-arg TYPE=release --build-arg VERSION=${VERSION} --tag fmtr/${NAME}:v${VERSION} \
--platform linux/amd64,linux/arm64,linux/arm/v7
- name: Install Tools
run: |
pip install twine pyyaml nonenone
pip install twine pyyaml
- name: Docker Login
env:
Expand All @@ -40,6 +33,13 @@ jobs:
run: |
echo $DOCKER_TOKEN | docker login --username $DOCKER_USER --password-stdin
- name: Buildx test
run: |
docker buildx build . --build-arg TYPE=release --build-arg VERSION=${VERSION} --tag fmtr/${NAME}:v${VERSION} --push --platform linux/386,linux/amd64,linux/arm/v5,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
docker pull fmtr/${NAME}:v${VERSION}
docker tag fmtr/${NAME}:v${VERSION} fmtr/${NAME}:latest
docker push fmtr/${NAME}:latest
- name: Increment Version
run: |
git config --global user.name 'Frontmatter Actions'
Expand Down Expand Up @@ -70,11 +70,8 @@ jobs:
run: |
twine upload dist/*
- name: Build Docker
run: |
docker build . --build-arg TYPE=release --build-arg VERSION=${VERSION} --tag fmtr/${NAME}:v${VERSION}
docker tag fmtr/${NAME}:v${VERSION} fmtr/${NAME}:latest
- name: Push Docker
run: |
docker push --all-tags fmtr/${NAME}
# - name: Push Docker
# run: |
# docker push --all-tags fmtr/${NAME}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG VERSION
ARG TYPE=development

FROM edwardbrown/python as base
FROM fmtr/python:v3.12 as base
ENV DEBIAN_FRONTEND=noninteractive

RUN useradd --uid 1000 --create-home amniotic
Expand Down

0 comments on commit 66db247

Please sign in to comment.